Commit Graph

2 Commits

Author SHA1 Message Date
Zoltan Somogyi
c3af04bb06 Fix the "level" command in mdb.
trace/mercury_trace_cmd_browsing.c:
    The "level" command was documented to reset the current ancestor level
    to the level of the current event (ancestor level 0) when invoked
    without arguments, but when invoked that way, it reported an error
    instead. Fix this.

tests/debugger/queens_rep.inp:
tests/debugger/queens_rep.exp:
    Add a test for the fix in this existing test case.
2020-09-27 16:11:56 +10:00
Zoltan Somogyi
d839c2993e Fix a bug that caused an abort at certain events in the debugger.
Estimated hours taken: 2
Branches: main

Fix a bug that caused an abort at certain events in the debugger.

runtime/mercury_stack_layout.h:
	Change the name of the MR_exec_max_var_num field to
	MR_exec_max_named_var_num, as this better reflects its contents.

trace/mercury_trace_vars.c:
	If a var has a number beyond the value of MR_exec_max_named_var_num,
	do not abort; instead, ignore the variable because it is unnamed
	(and therefore of no interest to the user).

tests/debugger/queens_rep.{m,inp,exp}:
	New text case to confirm the lack of abort.

tests/debugger/Mmakefile:
	Enable the new test case.
2002-04-03 07:08:22 +00:00