public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8256: g++ -ggdb does not emmit debug info for subclasses
@ 2002-10-17 10:35 dberlin
0 siblings, 0 replies; only message in thread
From: dberlin @ 2002-10-17 10:35 UTC (permalink / raw)
To: dberlin, gcc-bugs, gcc-prs, nobody, thor
Synopsis: g++ -ggdb does not emmit debug info for subclasses
Responsible-Changed-From-To: unassigned->dberlin
Responsible-Changed-By: dberlin
Responsible-Changed-When: Thu Oct 17 10:35:17 2002
Responsible-Changed-Why:
Me
State-Changed-From-To: open->closed
State-Changed-By: dberlin
State-Changed-When: Thu Oct 17 10:35:17 2002
State-Changed-Why:
This is a gdb problem.
Not a g++ one.
It's doing the lookup wrong.
In fact, it tells you so.
"the class A does not have any method named B"
It's trying to find a method named B, in class A, instead of looking for a method named Hello, in class "A::B".
You can prove it to yourself by using
rb A::C::Hello
Which will avoid the normal lookup strategy (It will set breakpoints based on a regexp, thus, it just searches all the symbols, rather than trying to find just one symbol through the normal lookup path).
I also looked at the generated debug info, just to make sure, and we are outputting the proper debug info.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8256
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-10-17 17:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-17 10:35 c++/8256: g++ -ggdb does not emmit debug info for subclasses dberlin
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).