aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
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/testsuite
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/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.cp/virtfunc.exp4
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 9add701..ac1e20a 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * gdb.cp/virtfunc.exp (proc do_tests): Test stepping through a thunk.
+
2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
* gdb.fortran/complex.exp, gdb.fortran/complex.f: New files.
diff --git a/gdb/testsuite/gdb.cp/virtfunc.exp b/gdb/testsuite/gdb.cp/virtfunc.exp
index 6f7a6e9..4b1472e 100644
--- a/gdb/testsuite/gdb.cp/virtfunc.exp
+++ b/gdb/testsuite/gdb.cp/virtfunc.exp
@@ -254,6 +254,10 @@ proc do_tests {} {
gdb_breakpoint test_calls
gdb_test "continue" ".*Breakpoint .* test_calls.*" ""
test_virtual_calls
+
+ gdb_test "next" ".*pAa->f.*" "next to pAa->f call"
+ gdb_test "next" ".*pDe->vg.*" "next to pDe->vg call"
+ gdb_test "step" ".*E::vg.*" "step through thunk into E::vg"
}
do_tests