c++/8256: g++ -ggdb does not emmit debug info for subclasses
dberlin@sources.redhat.com
dberlin@sources.redhat.com
Thu Oct 17 10:35:00 GMT 2002
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
More information about the Gcc-bugs
mailing list