From: Grumble <devnull@kma.eu.org>
To: gdb@sources.redhat.com
Subject: Struct fields printed in a strange way
Date: Thu, 18 Nov 2004 21:22:00 -0000 [thread overview]
Message-ID: <419C6A6B.4040508@kma.eu.org> (raw)
Hello all,
gdb seems slightly confused when the name of a struct field is
suffixed with "__0".
$ cat foo.c
struct foo { double x__0, y__0, z__1; } bar;
int main(void)
{
return 0;
}
$ gcc-3.3.2 -Wall -ansi -pedantic -g3 foo.c
$ gdb a.out
GNU gdb 6.0-2mdk (Mandrake Linux)
Copyright 2003 Free Software Foundation, Inc.
[...]
This GDB was configured as "i586-mandrake-linux-gnu"...Using host
libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) print bar
$1 = {::x(void) = 0, ::y(void) = 0, z__1 = 0}
(gdb) show language
The current source language is "auto; currently c".
Why is x__0 changed to ::x(void)? Is the "__0" suffix reserved in gdb?
--
Regards, Grumble
next reply other threads:[~2004-11-18 9:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-18 21:22 Grumble [this message]
[not found] <41A48947.5040507@kma.eu.org>
2004-11-24 17:53 ` Ramana Radhakrishnan
2004-11-26 17:26 ` Dave Korn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=419C6A6B.4040508@kma.eu.org \
--to=devnull@kma.eu.org \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox