🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53569

Re: tracing variables with debug32 on djgpp port

#53569
From: DJ Delorie
Date: Tue, 29 Oct 1991 21:35
22 lines
1267 bytes
In article <1991Oct29.183230.5945@colorado.edu>, gordon@news.colorado.edu (GORDON ALLEN R) writes:
> 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.

global variables can be displayed via

>> d _some_var 4
0x00404310: 0x00000043

There currently isn't any support for local vars - I was hoping to get
gdb running (no luck; don't ask) before too many folks got sick of
debug32.

You could use

  >> d %ebp-4 4

if you happen to know the correct offset from EBP.

DJ
dj@ctron.com
Life is a banana.
Technical Details
Message-ID: <2500@balrog.ctron.com>
Path: arc1-ca.pugleaf.net!gmdzi!zeus.ieee.org!sdd.hp.com!zaphod.mps.ohio-state.edu!samsung!balrog!ctron.com
References: <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-29 14:20:33 PST
Path: arc1-ca.pugleaf.net!gmdzi!zeus.ieee.org!sdd.hp.com!zaphod.mps.ohio-state.edu!samsung!balrog!ctron.com
From: dj@ctron.com (DJ Delorie)
Newsgroups: gnu.gcc.help
Subject: Re: tracing variables with debug32 on djgpp port
Keywords: debug32
Message-ID: <2500@balrog.ctron.com>
Date: 29 Oct 91 21:35:50 GMT
References: <1991Oct29.183230.5945@colorado.edu>
Sender: news@balrog.ctron.com
Reply-To: dj@ctron.com
Organization: None whatsoever
Lines: 22
Nntp-Posting-Host: bragi