public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* GDB and symbols with leading underscore
@ 2007-11-14 10:59 Roland Puntaier
  0 siblings, 0 replies; only message in thread
From: Roland Puntaier @ 2007-11-14 10:59 UTC (permalink / raw)
  To: gdb

Hello,

How can I configure (or patch) GDB 6.6 for mingw so that it shows the 
variables without the leading '_'.

        when compiling with cygwin hosted gcc 2.95.3, symbols in the elf 
file are with leading '_'.

        GDB 6.6 configured as "--host=i686-pc-mingw32 --target=i386-elf" 
does show the symbols with '_', 
        i.e. you have to enter "p _v" for a variable named "v" in the 
source.

        An earlier GDB (4.16.1) can read elf files 
        - with '_' symbols compiled with the mentioned gcc 2.95.3 and 
        - without '_' symbols, compiled by gcc 4.1.2 configured as 
"--host=i686-pc-mingw32 --target=i386-elf".

I'm very thankful for any hint, be it just in the right direction.

Regards, Roland

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-14 10:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-14 10:59 GDB and symbols with leading underscore Roland Puntaier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).