aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-lang.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-05-07 11:49:05 +0000
committerDaniel Jacobowitz <drow@false.org>2007-05-07 11:49:05 +0000
commitb18be20d0aadff1e7c5b4d161177481aa61b9fc4 (patch)
treeb3807e7e3e98d6155edff77c65a25c93542aee32 /gdb/c-lang.c
parentdda9b909e68c77cae3ad23e67b8acd5809652997 (diff)
downloadgdb-b18be20d0aadff1e7c5b4d161177481aa61b9fc4.zip
gdb-b18be20d0aadff1e7c5b4d161177481aa61b9fc4.tar.gz
gdb-b18be20d0aadff1e7c5b4d161177481aa61b9fc4.tar.bz2
* Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
* NEWS: Mention improved C++ thunk support. * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline. * cp-abi.c (cplus_skip_trampoline): New. * cp-abi.h (cplus_skip_trampoline): New prototype. (struct cp_abi_ops): Add skip_trampoline member. * gnu-v3-abi.c (gnuv3_skip_trampoline): New. (init_gnuv3_ops): Set skip_trampoline. * gdb.cp/virtfunc.exp (proc do_tests): Test stepping through a thunk.
Diffstat (limited to 'gdb/c-lang.c')
-rw-r--r--gdb/c-lang.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/c-lang.c b/gdb/c-lang.c
index af42188..52b2a36 100644
--- a/gdb/c-lang.c
+++ b/gdb/c-lang.c
@@ -33,6 +33,7 @@
#include "charset.h"
#include "gdb_string.h"
#include "demangle.h"
+#include "cp-abi.h"
#include "cp-support.h"
extern void _initialize_c_language (void);
@@ -642,7 +643,7 @@ const struct language_defn cplus_language_defn =
c_print_type, /* Print a type using appropriate syntax */
c_val_print, /* Print a value using appropriate syntax */
c_value_print, /* Print a top-level value */
- NULL, /* Language specific skip_trampoline */
+ cplus_skip_trampoline, /* Language specific skip_trampoline */
value_of_this, /* value_of_this */
cp_lookup_symbol_nonlocal, /* lookup_symbol_nonlocal */
cp_lookup_transparent_type, /* lookup_transparent_type */