Make gdb_continue_to_breakpoint fail quickly on internal errors.
[deliverable/binutils-gdb.git] / gdb / testsuite / lib / gdb.exp
index 5411cb5b23fe07ba00b14ebdaaec51b05eba305e..d904b81f13d2dbb7adc3b004ff26ca340cedafab 100644 (file)
@@ -549,17 +549,10 @@ proc gdb_continue_to_breakpoint {name {location_pattern .*}} {
     global gdb_prompt
     set full_name "continue to breakpoint: $name"
 
-    send_gdb "continue\n"
-    gdb_expect {
+    gdb_test_multiple "continue" $full_name {
        -re "(?:Breakpoint|Temporary breakpoint) .* (at|in) $location_pattern\r\n$gdb_prompt $" {
            pass $full_name
        }
-       -re ".*$gdb_prompt $" {
-           fail $full_name
-       }
-       timeout { 
-           fail "$full_name (timeout)"
-       }
     }
 }
 
This page took 0.024879 seconds and 4 git commands to generate.