RFA: fix PR python/11792

Eli Zaretskii eliz@gnu.org
Thu Sep 2 18:40:00 GMT 2010


> From: Tom Tromey <tromey@redhat.com>
> Cc: gdb-patches@sourceware.org
> Date: Thu, 02 Sep 2010 09:36:57 -0600
> 
> Eli> Now I'm confused: earlier you told that the current language doesn't
> Eli> matter, but now you say that only information emitted by the C++
> Eli> compiler will do, which seems a contradiction.  What am I missing?
> 
> The current language is a gdb setting.  It is independent of objects in
> the inferior.

That's a misunderstanding, then: I didn't mean (and didn't say)
"current language".

So I understand now that this feature will work only while debugging a
C++ program that includes RTTI for the object in question.  Otherwise,
it will just return the type of the value as in "ptype foo", is that
right?  If so, maybe just mention this fact, since someone who debugs
a non-C++ program will not necessarily understand what is meant by
"the static type".

Thanks.



More information about the Gdb-patches mailing list