[m-dev.] Corrupted variable names in debugger

Peter Moulder pmoulder at csse.monash.edu.au
Fri Feb 21 14:53:43 AEDT 2003


On Wed, Feb 19, 2003 at 02:47:23PM +1100, Ralph Becket wrote:

> I'm tracing through make_hlds with --trace deep and several variable
> names are being printed as corrupted strings (i.e. a lot of gibberish
> including control characters that are doing something whacky to the
> terminal.)  I recall this having arisen and been dealt with before.  Is
> there an obvious fix?

I don't know of one.  I've had a quick look at some of the code closer
towards the mdb side, and can't see any obvious problems.  For want of
anything more helpful, I'll ask a few diagnosis questions.  (Don't take
this as a commitment to act on your reply :-) .)

Can you make available any transcripts showing the problem (whether
posted to list or a URL if too unwieldy) ?

What commands are affected?  E.g. if `print *' shows `garbage' instead of `foo', then
does `print garbage' work?  Does `print foo' work?

Can you see any evidence of the variable names being scribbled over
(e.g. partially correct name) or might the actual pointer be garbage
(i.e. an address that was never the beginning of a correct variable
name) ?

Are corresponding values & typeinfos correct?

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