aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2015-09-18 11:52:26 -0700
committerSandra Loosemore <sandra@codesourcery.com>2015-09-18 11:52:26 -0700
commit79dc332ba2db30e02e816f6ecbffca548f2f6c30 (patch)
treebf0e955b791c4640dac671c2ea766ec0ec9cf566 /gdb/testsuite/gdb.mi
parentf57929f229c97462650cef4086bb930290ba92af (diff)
downloadfsf-binutils-gdb-79dc332ba2db30e02e816f6ecbffca548f2f6c30.zip
fsf-binutils-gdb-79dc332ba2db30e02e816f6ecbffca548f2f6c30.tar.gz
fsf-binutils-gdb-79dc332ba2db30e02e816f6ecbffca548f2f6c30.tar.bz2
Fix pathname prefix and timeout issues in gdb.mi/mi-pending.exp.
2015-09-18 Sandra Loosemore <sandra@codesourcery.com> gdb/testsuite/ * gdb.mi/mi-pending.exp: Don't use directory prefix when setting the pending breakpoint. Remove timeout override for "Run till MI pending breakpoint on pendfunc3 on thread 2" test.
Diffstat (limited to 'gdb/testsuite/gdb.mi')
-rw-r--r--gdb/testsuite/gdb.mi/mi-pending.exp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-pending.exp b/gdb/testsuite/gdb.mi/mi-pending.exp
index 88c6870..5426db5 100644
--- a/gdb/testsuite/gdb.mi/mi-pending.exp
+++ b/gdb/testsuite/gdb.mi/mi-pending.exp
@@ -64,8 +64,8 @@ mi_gdb_test "-break-insert -f pendfunc1" \
"MI pending breakpoint on pendfunc1"
# Set pending breakpoint with a condition via MI.
-mi_gdb_test "-break-insert -f -c x==4 ${libsrc1}:pendfunc2" \
- ".*\\^done,bkpt=\{number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"<PENDING>\",pending=\"${libsrc1}:pendfunc2\",cond=\"x==4\",times=\"0\",original-location=\"${libsrc1}:pendfunc2\"\}"\
+mi_gdb_test "-break-insert -f -c x==4 ${libfile1}.c:pendfunc2" \
+ ".*\\^done,bkpt=\{number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"<PENDING>\",pending=\"${libfile1}.c:pendfunc2\",cond=\"x==4\",times=\"0\",original-location=\"${libfile1}.c:pendfunc2\"\}"\
"MI pending breakpoint on ${libfile1}.c:pendfunc2 if x==4"
# Set breakpoint so that we can stop when the thread is created
@@ -112,7 +112,7 @@ mi_send_resuming_command "exec-continue" "continuing execution to thread conditi
# Check if we stopped in thread 2 like we should.
set testname "Run till MI pending breakpoint on pendfunc3 on thread 2"
-gdb_expect 5 {
+gdb_expect {
-re "\\*stopped,reason=\"breakpoint-hit\",disp=\"keep\",bkptno=\"4\",frame=\{addr=\"$hex\",func=\"pendfunc3\".*thread-id=\"2\".*" {
pass $testname
return 0