[m-dev.] for review: new debugger command "all_regs"

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Aug 9 18:18:17 AEST 1999

On 09-Aug-1999, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> trace/mercury_trace_internal.c:
> 	Add a command, "all_regs", that prints the contents of all the Mercury
> 	abstract machine registers.
> doc/user_guide.texi:
> tests/debugger/mdb_command_test.inp:
> 	Document and test the new command.
> runtime/mercury_regorder.h:
> 	Fix an old bug: the macros that define which mrN registers hold
> 	the pointers to and indexes into the cut and gen stacks disagreed
> 	with the macros that related the pointers and indexes to slots in
> 	the array holding saved mrNs. Until I added all_regs, the latter
> 	macros were not used; if they were, the code would have gotten
> 	a type error from the C compiler.

That looks fine to me.

Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at        |     -- the last words of T. S. Garp.
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au

More information about the developers mailing list