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.
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.