🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #1349

Macro Evaluation with print

#1349
From: Sean Sleicher
Date: Thu, 15 Aug 2002 15:47
11 lines
1758 bytes
How is it possible to use gdb to evaluate expressions which contain
macros?   I am using macros defined in a header file.  If I attach to
a process and attempt to print an expression containing the macro name
then I am told :
No symbol "my_symbol" in current context
I am presuming that the macro is replaced in the symbol table by its
definition, but surely there is some way of telling the compiler to
retain that
information?  I am inexperienced I may have missed something obvious.
Thanks,
Sean
Technical Details
Message-ID: <8e9a0c22.0208150747.4aaa1904@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newshosting.com!news-xfer1.atl.newshosting.com!uunet!dca.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,ead6bbbd80ac2457,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 2002-08-15 08:47:50 PST
x-uunet-gateway: mr0.ash.ops.us.uu.net from bug-gdb to gnu.gdb.bug; Thu, 15 Aug 2002 15:47:48 GMT
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newshosting.com!news-xfer1.atl.newshosting.com!uunet!dca.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mail
From: sean_sleicher@yahoo.com (Sean Sleicher)
Subject: Macro Evaluation with print
Date: 15 Aug 2002 08:47:01 -0700
Organization: http://groups.google.com/
Message-ID: <8e9a0c22.0208150747.4aaa1904@posting.google.com>
NNTP-Posting-Host: 12.35.229.5
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1029426421 31692 127.0.0.1 (15 Aug 2002 15:47:01 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 15 Aug 2002 15:47:01 GMT
X-MailScanner: Passed
X-Spam-Status: No, hits=1.5 required=5.0
 tests=FORGED_YAHOO_RCVD
 version=2.31
X-Spam-Level: *
Approved: bug-gdb-request@mail.gnu.org
Newsgroups: gnu.gdb.bug
Sender: bug-gdb-request@mail.gnu.org
Lines: 11