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 symtab/11463] New: Cannot print instance ctors/dtors type


When I can print ctors/dtors address w/type I cannot print just their type.

When I can
(gdb) print something
where I get even something's type printed why I cannot do
(gdb) ptype something
?

(gdb) print test1.gnu_obj_1
$5 = {void (gnu_obj_1 *, region, long)} 0x400810 <gnu_obj_1::gnu_obj_1(region,
long)>
PASS: gdb.cp/m-static.exp: simple object instance, print constructor
(gdb) print test1.'~gnu_obj_1'
$6 = {void (gnu_obj_1 *, int)} 0x400822 <gnu_obj_1::~gnu_obj_1()>
PASS: gdb.cp/m-static.exp: simple object instance, print quoted destructor

(gdb) ptype test1.gnu_obj_1
Type gnu_obj_1 has no component named gnu_obj_1.
FAIL: gdb.cp/m-static.exp: simple object instance, ptype constructor
(gdb) ptype test1.'~gnu_obj_1'
Type gnu_obj_1 has no component named ~gnu_obj_1.
FAIL: gdb.cp/m-static.exp: simple object instance, ptype quoted destructor

-- 
           Summary: Cannot print instance ctors/dtors type
           Product: gdb
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: symtab
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: jan dot kratochvil at redhat dot com
                CC: gdb-prs at sourceware dot org
GCC target triplet: x86_64-unknown-linux-gnu


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

------- 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]