This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC 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: c++/8256: g++ -ggdb does not emmit debug info for subclasses


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


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