This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/18417] New: printing of std::cerr gets "warning: RTTI symbol for class 'std::iostream' has bad type"
- From: "dje at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 15 May 2015 19:46:31 +0000
- Subject: [Bug c++/18417] New: printing of std::cerr gets "warning: RTTI symbol for class 'std::iostream' has bad type"
- Auto-submitted: auto-generated
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.