Article View: gnu.gcc.help
Article #53572Re: tracing variables with debug32 on djgpp port
From: Kent Williams
Date: Wed, 30 Oct 1991 14:38
Date: Wed, 30 Oct 1991 14:38
27 lines
1577 bytes
1577 bytes
From article <1991Oct29.183230.5945@colorado.edu>, by gordon@news.colorado.edu (GORDON ALLEN R):
> It is not immediately obvious to me how to trace and print out variables using
> debug32. I can trace through programs, symbolically, but this has stymied me.
>
> Thanks for your help.
>
> Allen Gordon
>
>
> --
> Allen Gordon
> University of Colorado, Boulder
> gordon@tramp.colorado.edu
> gordon_A@cubldr.colorado.edu
I don't have the docs in front of me, but I do know that you can dump
memory using symbol addresses. This is rather primitive, but it works.
If you wanted an interesting project, add a smart print function to debug32.
All you need to do is get the name of the var to print, look up its
type information, and build an appropriate format string for printf.
Of course you need to have turbo C to hack debug32.
--
Kent Williams --- williams@cs.uiowa.edu
"Reality is what refuses to go away when I stop believing in it" - P.K. Dick
Technical Details
Message-ID:
<8872@ns-mx.uiowa.edu>Path:
arc1-ca.pugleaf.net!gmdzi!zeus.ieee.org!sdd.hp.com!zaphod.mps.ohio-state.edu!hobbes.physics.uiowa.edu!ns-mx!herky.cs.uiowa.eduReferences:
<1991Oct29.183230.5945@colorado.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,481fe3748adefa5f X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1991-10-30 07:30:08 PST Path: arc1-ca.pugleaf.net!gmdzi!zeus.ieee.org!sdd.hp.com!zaphod.mps.ohio-state.edu!hobbes.physics.uiowa.edu!ns-mx!herky.cs.uiowa.edu From: williams@herky.cs.uiowa.edu (Kent Williams) Newsgroups: gnu.gcc.help Subject: Re: tracing variables with debug32 on djgpp port Message-ID: <8872@ns-mx.uiowa.edu> Date: 30 Oct 91 14:38:16 GMT References: <1991Oct29.183230.5945@colorado.edu> Sender: news@ns-mx.uiowa.edu Lines: 27