aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-02-08 22:30:42 +0000
committerDaniel Jacobowitz <drow@false.org>2004-02-08 22:30:42 +0000
commit14b1a05659e45723dbf9a91ed13c09734252eb1e (patch)
treea6ec15c5827218d83ddcceb284c7b25746ca2652 /gdb/testsuite/lib
parentdefc864cda3343fcd67bea28b39197a8dbc0e2e5 (diff)
downloadgdb-14b1a05659e45723dbf9a91ed13c09734252eb1e.zip
gdb-14b1a05659e45723dbf9a91ed13c09734252eb1e.tar.gz
gdb-14b1a05659e45723dbf9a91ed13c09734252eb1e.tar.bz2
* lib/gdb.exp (gdb_breakpoint): Fail on unexpected pending
breakpoints.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 5838c0d..8933897 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -276,8 +276,8 @@ proc gdb_breakpoint { function } {
-re "Breakpoint \[0-9\]*: file .*, line $decimal.\r\n$gdb_prompt $" {}
-re "Breakpoint \[0-9\]* at .*$gdb_prompt $" {}
-re "Make breakpoint pending.*y or n. $" {
- gdb_test "n" "" "setting breakpoint at $function" ;
- return 1;
+ send_gdb "n\n"
+ exp_continue
}
-re "$gdb_prompt $" { fail "setting breakpoint at $function" ; return 0 }
timeout { fail "setting breakpoint at $function (timeout)" ; return 0 }