This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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]

[Bug gdb/11639] New: Base class type information not accessible in binaries compiled with g++ 4.5.0


This is the "second issue" in
http://sourceware.org/bugzilla/show_bug.cgi?id=10953 but as it seems unrelated I
put it as a separate issue here:

If 'Derived' and 'Base' are setup as in #10953, and there is an additional
function 'Derived::foo()' with the following implementation 

void Derived::foo()
{
    Base *b = this;
    Base &br = *b;
}

then

 'print b'

yields  "$1 = (void *) 0xbfffee38", i.e. the type information for 'b' is
completely lost.

It should print (Base *) 0xbfffee38. 

The problem is not present in g++ 4.4.

-- 
           Summary: Base class type information not accessible in binaries
                    compiled with g++ 4.5.0
           Product: gdb
           Version: 7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: andre dot poenitz at nokia dot com
                CC: gdb-prs at sourceware dot org
 GCC build triplet: i486-linux-gnu
  GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=11639

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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