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++/18417] New: printing of std::cerr gets "warning: RTTI symbol for class 'std::iostream' has bad type"


https://sourceware.org/bugzilla/show_bug.cgi?id=18417

            Bug ID: 18417
           Summary: printing of std::cerr gets "warning: RTTI symbol for
                    class 'std::iostream' has bad type"
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
          Assignee: unassigned at sourceware dot org
          Reporter: dje at google dot com
  Target Milestone: ---

this is a corollary to PR 18141.
18141 is a perf issue, this one is for the correctness issue.

"p std::cerr" can give the following:

warning: RTTI symbol for class 'std::iostream' has bad type

this is because the minsym for the vtable is a typedef.

gnuv3_rtti_type calls check_typedef on the value's type,
and then does a minsym lookup by pc for the vtable
which returns "_ZTVSo" which demangles as
"vtable for std::ostream", and "std::iostream" is a typedef.

patch to follow.

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