Files
mercury/tests/debugger/exception_value.inp
Mark Brown 8cfbaedc5a Allow the value of an exception to be printed and browsed
Estimated hours taken: 5

Allow the value of an exception to be printed and browsed
at EXCP events in the internal debugger.  Two new commands
are added to the debugger:

	print exception
	browse exception

trace/mercury_trace_internal.c:
	Implement the new commands.

runtime/mercury_trace_base.c:
runtime/mercury_trace_base.h:
	Export functions to get/set a global which stores the
	value of an exception for the internal debugger to refer to.

library/exception.m:
	Set the exception value before generating EXCP events.

doc/user_guide.texi:
	Document the new debugger commands.

tests/debugger/Mmakefile:
tests/debugger/exception_value.m:
tests/debugger/exception_value.inp:
tests/debugger/exception_value.exp:
tests/debugger/exception_value.exp2:
	Add a test case.
2000-06-19 07:59:28 +00:00

16 lines
147 B
Plaintext

echo on
register --quiet
break p
break q
continue
finish
print exception
continue
finish
browse exception
set depth 9
set size 99
ls
quit
continue