aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-abi.h
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/cp-abi.h
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/cp-abi.h')
-rw-r--r--gdb/cp-abi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/cp-abi.h b/gdb/cp-abi.h
index 4ddc121..91d89b3 100644
--- a/gdb/cp-abi.h
+++ b/gdb/cp-abi.h
@@ -170,6 +170,11 @@ struct value *cplus_method_ptr_to_value (struct value **this_p,
void cplus_make_method_ptr (gdb_byte *CONTENTS, CORE_ADDR address,
int is_virtual);
+/* Determine if we are currently in a C++ thunk. If so, get the address
+ of the routine we are thunking to and continue to there instead. */
+
+CORE_ADDR cplus_skip_trampoline (CORE_ADDR stop_pc);
+
struct cp_abi_ops
{
const char *shortname;
@@ -192,6 +197,7 @@ struct cp_abi_ops
int (*method_ptr_size) (void);
void (*make_method_ptr) (gdb_byte *, CORE_ADDR, int);
struct value * (*method_ptr_to_value) (struct value **, struct value *);
+ CORE_ADDR (*skip_trampoline) (CORE_ADDR);
};