This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/14235] verbose RTTI message polluting traces
- From: "andre.poenitz at digia dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 12 Feb 2013 17:10:30 +0000
- Subject: [Bug python/14235] verbose RTTI message polluting traces
- Auto-submitted: auto-generated
- References: <bug-14235-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14235
Andre Poenitz <andre.poenitz at digia dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andre.poenitz at digia dot
| |com
--- Comment #5 from Andre Poenitz <andre.poenitz at digia dot com> 2013-02-12 17:10:30 UTC ---
The following reproduces the issue for me:
void unused(const void *first,...) { (void) first; }
void breakHere() {}
int main()
{
struct BaseClass { virtual ~BaseClass() {} };
struct DerivedClass : BaseClass {};
DerivedClass d;
BaseClass *b1 = &d;
BaseClass &b2 = d;
unused(&b1, &b2);
breakHere();
return 0;
}
Compile, start, do
python print gdb.parse_and_eval("b1")
python print gdb.parse_and_eval("b2")
The problem goes away if the struct definitions are moved out of main().
gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
GNU gdb (GDB) 7.5-ubuntu
--
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.