From 57651221de401ff77b3c43e2b678190e574f9baa Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 15 Mar 2012 16:32:16 +0000 Subject: [PATCH] * NEWS: Mention "info vtbl", not "info vtable". * cp-support.c (info_vtbl_command): Fix comment. (_initialize_cp_support): Fix text. --- gdb/ChangeLog | 6 ++++++ gdb/NEWS | 2 +- gdb/cp-support.c | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 01b9efd..1a75508 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2012-03-15 Tom Tromey + * NEWS: Mention "info vtbl", not "info vtable". + * cp-support.c (info_vtbl_command): Fix comment. + (_initialize_cp_support): Fix text. + +2012-03-15 Tom Tromey + * cp-valprint.c (cp_print_value_fields): Use print_function_pointer_address for vtable slot. diff --git a/gdb/NEWS b/gdb/NEWS index 5ab855c..6444984 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -70,7 +70,7 @@ ** "enable count" can be used to auto-disable a breakpoint after several hits. - ** "info vtable" can be used to show the virtual method tables for + ** "info vtbl" can be used to show the virtual method tables for C++ and Java objects. * New targets diff --git a/gdb/cp-support.c b/gdb/cp-support.c index 8d8b69b..a41bcec 100644 --- a/gdb/cp-support.c +++ b/gdb/cp-support.c @@ -1564,7 +1564,7 @@ cp_validate_operator (const char *input) return 0; } -/* Implement "info vtable". */ +/* Implement "info vtbl". */ static void info_vtbl_command (char *arg, int from_tty) @@ -1595,7 +1595,7 @@ _initialize_cp_support (void) &maint_cplus_cmd_list); add_info ("vtbl", info_vtbl_command, - _("Show the vtable for a C++ object.\n\ + _("Show the virtual function table for a C++ object.\n\ Usage: info vtbl EXPRESSION\n\ Evaluate EXPRESSION and display the virtual function table for the\n\ resulting object.")); -- 2.7.4