This is the mail archive of the mailing list for the Archer project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: archer gdb and gcc 4.1 global namespace DIE

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,

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

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

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,

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]