This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: symtab/213: Type confusion with excluded include files (stabs)
- From: mec at shout dot net
- To: gdb-prs at sources dot redhat dot com, gustav at virtutech dot se, mattias at virtutech dot se, mec at shout dot net
- Date: 19 Aug 2003 19:28:29 -0000
- Subject: Re: symtab/213: Type confusion with excluded include files (stabs)
- Reply-to: mec at shout dot net, gdb-prs at sources dot redhat dot com, gustav at virtutech dot se, mattias at virtutech dot se, mec at shout dot net, gdb-gnats at sources dot redhat dot com
Synopsis: Type confusion with excluded include files (stabs)
State-Changed-From-To: open->feedback
State-Changed-By: chastain
State-Changed-When: Tue Aug 19 19:28:29 2003
State-Changed-Why:
I'm working through old bugs in the gdb database.
The test program here violates the One Definition Rule. I don't know if the ODR is part of the ISO standard for C; I will go find that out.
Meanwhile, I tested with gcc 3.3.1 and gdb 5.3. With -gdwarf-2, gdb correctly prints the types of both "a" and "b". With -gstabs+, gdb incorrectly prints both "a" and "b" as the same type.
When I find out what the ISO C standard says, I'll write more about this bug.
Michael C
GDB QA Guy
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=213