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 c++/15008] Lookup of base types with virtual functions isbroken


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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |tromey at redhat dot com

--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2013-01-10 14:52:40 UTC ---
I tried this with today's git master using the Fedora 16 gcc.
It worked fine:

Breakpoint 3, main () at pr.cc:29
29            D d;
(gdb) ptype A
type = struct A {
}
(gdb) c
Continuing.

Breakpoint 1, D::foo (this=0x7fffffffe400) at pr.cc:12
12                A *b = 0;
(gdb) ptype A
type = struct A {
}
(gdb) c
Continuing.

Breakpoint 2, D::bar (this=0x7fffffffe400) at pr.cc:20
20                A *b = 0;
(gdb) ptype A
type = struct A {
}

I also tried 7.5, and it did fail there.

Could you try a newer gdb?
I wonder if this is PR 8888.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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