aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-03-15 15:43:18 +0000
committerTom Tromey <tromey@redhat.com>2012-03-15 15:43:18 +0000
commitc4aeac856a297bbcf96e565e5bad277bfcff3c1b (patch)
tree1ef0a5f09b31976672edd7838604cecb63e1d339 /gdb/doc
parent2479f722a449340bcd8465474090339c1e004e9e (diff)
downloadgdb-c4aeac856a297bbcf96e565e5bad277bfcff3c1b.zip
gdb-c4aeac856a297bbcf96e565e5bad277bfcff3c1b.tar.gz
gdb-c4aeac856a297bbcf96e565e5bad277bfcff3c1b.tar.bz2
* gnu-v3-abi.c (struct value_and_voffset): New.
(hash_value_and_voffset, eq_value_and_voffset) (compare_value_and_voffset, compute_vtable_size) (print_one_vtable, gnuv3_print_vtable): New functions. (init_gnuv3_ops): Initialize 'print_vtable' field. * cp-support.c (info_vtbl_command): New function. (_initialize_cp_support): Add "info vtbl". * cp-abi.h (cplus_print_vtable): Declare. (struct cp_abi_ops) <print_vtable>: New field. * cp-abi.c (cplus_print_vtable): New function. * NEWS: Update. gdb/testsuite * gdb.cp/virtfunc.exp (make_one_vtable_result): New proc. (test_info_vtbl): Likewise. (do_tests): Call test_info_vtbl. * gdb.cp/virtfunc.cc (va): New global. gdb/doc * gdb.texinfo (Debugging C Plus Plus): Document "info vtbl".
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog4
-rw-r--r--gdb/doc/gdb.texinfo6
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 80dd326..8ea02d0 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,7 @@
+2012-03-15 Tom Tromey <tromey@redhat.com>
+
+ * gdb.texinfo (Debugging C Plus Plus): Document "info vtbl".
+
2012-03-13 Doug Evans <dje@google.com>
* gdb.texinfo (Help): Change apropos example to use "alias" instead
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index a5022d4..d4c5656 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -12788,6 +12788,12 @@ Print inheritance relationships as well as other information for type
@var{typename}.
@xref{Symbols, ,Examining the Symbol Table}.
+@item info vtbl @var{expression}.
+The @code{info vtbl} command can be used to display the virtual
+method tables of the object computed by @var{expression}. This shows
+one entry per virtual table; there may be multiple virtual tables when
+multiple inheritance is in use.
+
@cindex C@t{++} symbol display
@item set print demangle
@itemx show print demangle