aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.gdb
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2016-07-20 16:26:44 +0200
committerJan Kratochvil <jan.kratochvil@redhat.com>2016-07-20 16:26:44 +0200
commit027d97f8b0193a8113ee60bafc686d45d0af59ee (patch)
tree9efbaa9d3ec43aed9e231eb79e884e1f85753a65 /gdb/testsuite/gdb.gdb
parent7674d381b47f9f2411c0ca1da0c152940dc0d7bd (diff)
downloadgdb-027d97f8b0193a8113ee60bafc686d45d0af59ee.zip
gdb-027d97f8b0193a8113ee60bafc686d45d0af59ee.tar.gz
gdb-027d97f8b0193a8113ee60bafc686d45d0af59ee.tar.bz2
testsuite: Fix gdb.gdb/selftest.exp for C++-O2-g-built GDB
tested on Fedora 24 x86_64 after: ./configure; make That is: CFLAGS='-g -O2' CXXFLAGS='-g -O2' FAIL: gdb.gdb/selftest.exp: unknown source line FAIL: gdb.gdb/selftest.exp: step into xmalloc call gdb/testsuite/ChangeLog 2016-07-20 Jan Kratochvil <jan.kratochvil@redhat.com> * gdb.gdb/selftest.exp (do_steps_and_nexts): Add "next over TRY" and "step into captured_main (args)".
Diffstat (limited to 'gdb/testsuite/gdb.gdb')
-rw-r--r--gdb/testsuite/gdb.gdb/selftest.exp8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.gdb/selftest.exp b/gdb/testsuite/gdb.gdb/selftest.exp
index 809045a..2fdd9e3 100644
--- a/gdb/testsuite/gdb.gdb/selftest.exp
+++ b/gdb/testsuite/gdb.gdb/selftest.exp
@@ -111,6 +111,14 @@ proc do_steps_and_nexts {} {
set description "next over lim_at_start initialization"
set command "next"
}
+ -re ".*TRY.*$gdb_prompt $" {
+ set description "next over TRY"
+ set command "next"
+ }
+ -re ".*captured_main \\(args\\);.*$gdb_prompt $" {
+ set description "step into captured_main (args)"
+ set command "step"
+ }
-re ".*count . 0x3.*$gdb_prompt $" {
set description "next over conditional stack alignment code 1"
set command "next"