* lib/gdb.exp (gdb_breakpoint): Fail on unexpected pending
authorDaniel Jacobowitz <drow@false.org>
Sun, 8 Feb 2004 22:30:42 +0000 (22:30 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sun, 8 Feb 2004 22:30:42 +0000 (22:30 +0000)
breakpoints.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp

index 8d91aafd478eb2ee1e66d8ab095da9743b5cf3fb..2acbf535f65f0273f3c6e9e614a90dbb58c08776 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-08  Daniel Jacobowitz  <drow@mvista.com>
+
+       * lib/gdb.exp (gdb_breakpoint): Fail on unexpected pending
+       breakpoints.
+
 2004-02-07  Daniel Jacobowitz  <drow@mvista.com>
 
        * config/sim.exp (gdb_load): Handle $arg == "".
index 5838c0dad32db262e256b619895eb2830a4c8fdd..8933897cb4d79535d0f0403e475466f56f449a60 100644 (file)
@@ -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 }