This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: archer gdb and gcc 4.1 global namespace DIE
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Sami Wagiaalla <swagiaal at redhat dot com>
- Cc: Richard Guenther <rguenther at suse dot de>, archer at sourceware dot org
- Date: Mon, 11 May 2009 14:04:39 +0200
- Subject: Re: archer gdb and gcc 4.1 global namespace DIE
- References: <alpine.LNX.2.00.0905111333270.25789@zhemvz.fhfr.qr>
Hi Richard,
forwarding to Sami, author of the new C++ namespaces code.
Fedora 11 IMO should get a fix as GDB has now a regression for such simple
case for code from with F11 g++34 compiler.
Thanks for the bugreport,
Jan
On Mon, 11 May 2009 13:39:48 +0200, Richard Guenther wrote:
With the current Fedora archer based gdb I get for the G++ 4.1 compiled
testcase
int i;
int main() {}
(gdb) start
Temporary breakpoint 1, main () at t.C:3
3 int main() {}
(gdb) ptype i
type = <data variable, no debug info>
because of http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28460
former gdbs appearantly tried to handle this gracefully - and I am now
thinking how to add grace to archer based gdb as well. The simple idea
is to strip the
<1><6e>: Abbrev Number: 2 (DW_TAG_namespace)
DW_AT_sibling : <86>
DW_AT_name : ::
DW_AT_decl_file : 1
DW_AT_decl_line : 0
DIE during dwarf parsing (thus, fix up debug info inside gdb). Do you
think this is possible and if so, do you have a hint where this could
be done?
Many thanks,
Richard.