This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RFA: another documentation fixlet for c++
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 10 Nov 2011 11:59:50 -0700
- Subject: RFA: another documentation fixlet for c++
This needs a doc review.
PR 9257 concerns the fact that "set print object on" does not work if
the object in question has no run-time type identification. This patch
just adds a note to the manual to clarify this point.
Ok?
Tom
2011-11-10 Tom Tromey <tromey@redhat.com>
PR c++/9257:
* gdb.texinfo (Print Settings): Add an extra note about the need
for a vtable.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 1423b07..9e2fa38 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -8372,7 +8372,10 @@ Display the encoding style currently in use for decoding C@t{++} symbols.
@cindex display derived types
When displaying a pointer to an object, identify the @emph{actual}
(derived) type of the object rather than the @emph{declared} type, using
-the virtual function table.
+the virtual function table. Note that the virtual function table is
+required---this feature can only work for objects that have run-time
+type identification; a single virtual method in the object's declared
+type is sufficient.
@item set print object off
Display only the declared type of objects, without reference to the