Commit Graph

13 Commits

Author SHA1 Message Date
Ian MacLarty
e6d82c9bd4 Added trusted' and untrust' commands. Also allowed individual predicates to
Estimated hours taken: 10
Branches: main

Added `trusted' and `untrust' commands.  Also allowed individual predicates to
be trusted.

browser/declarative_debugger.m
	Exported predicates to add a trusted predicate or function, remove
	a trusted object and return a list of the trusted objects.

browser/declarative_oracle.m
	Changed trusted set so it can also contains individual predicates and
	functions.  Added predicates to add a trusted predicate or function
	to the set, remove a trusted object from the set and return a list
	of the trusted objects.

doc/mdb_categories
	Added dd category.

doc/user_guide.texi
	Documented `untrust' and `trusted' commands.

runtime/mercury_stack_trace.c
runtime/mercury_stack_trace.h
	Added a print_mode argument to MR_print_proc_id_internal, so that
	printing of mode information can be turned on or off.  When a list
	of matching predicates for the trust command is shown then mode
	information is superfluous, since a predicate/function is trusted, not
	a procedure.
	Added MR_print_pred_id to print predicate id - i.e. proc id without
	the mode info.

tests/debugger/completion.exp
	New commands shown in completion list.

tests/debugger/completion.inp
	Added a space, since a --More-- prompt is now displayed when showing
	all the commands.

tests/debugger/mdb_command_test.inp
	untrust and trusted added.

tests/debugger/declarative/trust.exp
tests/debugger/declarative/trust.inp
	Testing of new commands.

trace/mercury_trace_declarative.c
trace/mercury_trace_declarative.h
	Added functions to add a trusted predicate and remove a trusted
	object.  Also added a function to print a list of the trusted objects.
	These all call the predicates exported from declarative_debugger.m.

trace/mercury_trace_internal.c
	Added handlers for `trusted' and `untrust' commands.

trace/mercury_trace_tables.c
trace/mercury_trace_tables.h
	Added a function to filter out only the user predicates and functions
	from a list of procedures.  This filters out uci procs and also
	filters out all procs with a mode number > 0 (thus leaving one proc
	for each predicate/function).  This is used when displaying the
	predicates matching an ambiguous proc-spec with a trust command.

NEWS
	Updated NEWS file.
2004-09-20 04:50:26 +00:00
Zoltan Somogyi
a4e818756a Update this expected output file to correspond to completion.exp,
Estimated hours taken: 0.1
Branches: main

tests/debugger/completion.exp2:
	Update this expected output file to correspond to completion.exp,
	just with different readline behaviour.
2004-05-24 21:42:59 +00:00
Zoltan Somogyi
ecf57cada6 Update the expected output file after my recent change.
Estimated hours taken: 0.3
Branches: main

tests/debugger/completion.exp2:
	Update the expected output file after my recent change.
2004-03-19 10:48:55 +00:00
Fergus Henderson
4a8cd43707 Fix a problem that was causing failure of tests/debugger/completion on hg.
Branches: main
Estimated hours taken: 0.25

Fix a problem that was causing failure of tests/debugger/completion on hg.

tests/debugger/completion.exp2:
	Update this to reflect that all commands are unconditionally defined
	(after zs's recent change).  The differences between this and
	completion.exp are due to different versions of readline.

tests/debugger/completion.exp4:
tests/debugger/completion.exp5:
	Delete these files, since they are not needed.
2003-04-01 07:08:28 +00:00
Ralph Becket
a8ffd3680c Change the compiler and tools so that .' and not :' is now used as the
Estimated hours taken: 14
Branches: main

Change the compiler and tools so that `.' and not `:' is now used as the
module separator in all output.

Infix `.' now has associativity yfx and priority 10.

NEWS:
	Report the change.

configure.in:
	Amend the test for an up-to-date Mercury compiler to check whether
	it recognises `.' as a module qualifier.

compiler/code_gen.m:
compiler/error_util.m:
compiler/hlds_out.m:
compiler/prog_out.m:
compiler/prog_util.m:
compiler/rl_exprn.m:
compiler/rl_gen.m:
compiler/source_file_map.m:
compiler/unused_args.m:
library/io.m:
library/rtti_implementation.m:
library/type_desc.m:
runtime/mercury_debug.c:
runtime/mercury_deconstruct.c:
runtime/mercury_stack_trace.c:
	Change `:' to `.' as module separator for output.

compiler/mercury_to_mercury.m:
compiler/prog_io_typeclass.m:
	As above.
	Fixed a bug where `.' was not being recognised as a module separator.

doc/reference_manual.texi:
	Report the change.

library/term_io.m:
	Ensure that infix `.' is written without surrounding spaces.

tests/hard_coded/dot_separator.m:
tests/hard_coded/dot_separator.exp:
tests/hard_coded/Mmakefile:
	Test case added.
2003-01-17 05:57:20 +00:00
Zoltan Somogyi
4c22e8bd22 Update this file after introducing the "table" mdb command.
Estimated hours taken: 0.1
Branches: main

tests/debugger/completion.exp2:
	Update this file after introducing the "table" mdb command.
2002-11-20 05:47:11 +00:00
Fergus Henderson
fed209b0d2 Update the expected output for this test to include the
Estimated hours taken: 0.5
Branches: main

tests/debugger/completion.exp2:
        Update the expected output for this test to include the
        `unhide_events' command that Zoltan recently added.
2002-09-30 05:12:49 +00:00
Simon Taylor
cd389671fa Update expected output for my change to variable naming.
Estimated hours taken: 0.1
Branches: main

tests/debugger/completion.exp2:
	Update expected output for my change to variable naming.
2002-06-26 06:44:18 +00:00
Simon Taylor
89c0cc8f6a Handle differences in the output depending on whether the
Estimated hours taken: 0.2

tests/debugger/completion.exp2:
tests/debugger/completion.exp4:
tests/debugger/completion.exp5:
	Handle differences in the output depending on whether the
	declarative debugger is enabled or disabled.

tests/Mmake.common:
	Handle `.exp4' and `.exp5' files.
2002-04-14 08:54:34 +00:00
Simon Taylor
24c520727a Filter blank lines from the output.
Estimated hours taken: 0.25
Branches: main

tests/debugger/Mmakefile:
tests/debugger/completion.exp:
tests/debugger/completion.exp2:
	Filter blank lines from the output.
	This fixes test failures on murlibobo.
2002-03-26 09:45:54 +00:00
Simon Taylor
96fade865e Address Zoltan's review comment about my previous change.
Estimated hours taken: 0.25

tests/debugger/Mmakefile:
tests/debugger/completion.inp:
tests/debugger/completion.exp:
tests/debugger/completion.exp2:
	Address Zoltan's review comment about my previous change.
2002-03-08 07:18:08 +00:00
Simon Taylor
333f1b5def Fix dependencies on the contents of the standard library.
Estimated hours taken: 0.25

tests/debugger/Mmakefile:
tests/debugger/completion.inp:
tests/debugger/completion.exp:
tests/debugger/completion.exp2:
	Fix dependencies on the contents of the standard library.
2002-03-08 06:59:32 +00:00
Simon Taylor
a63d11ca4c Add the expected output for the older version of readline on roy.
Estimated hours taken: 0.1

tests/debugger/completion.exp2:
	Add the expected output for the older version of readline on roy.
2002-03-07 13:52:55 +00:00