gdb: Remove a non-const reference parameter
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.mi / mi-catch-cpp-exceptions.exp
index 80ecabbe5553073139e5d315a2d0b2161bd80176..9b64fb14f2aa64513af6dcad44dbc56cf3d9f91d 100644 (file)
@@ -130,27 +130,7 @@ with_test_prefix "all with invalid regexp" {
     setup_catchpoint "throw" "-r blahblah"
     setup_catchpoint "rethrow" "-r woofwoof"
     setup_catchpoint "catch" "-r miowmiow"
-
-    # Would like to use 'continue_to_breakpoint_in_main' here, if
-    # there wasn't a bug that requires a use of kfail.
-
-    mi_send_resuming_command "exec-continue" \
-       "exec-continue"
-    set testname "run until breakpoint in main"
-    gdb_expect {
-       -re "could not find minimal symbol for typeinfo address.*$mi_gdb_prompt$" {
-           kfail "gdb/24541" "${testname}"
-       }
-       -re "\\*stopped,bkptno=\"$decimal\",reason=\"breakpoint-hit\",disp=\"keep\".*func=\"__cxa_throw\".*$mi_gdb_prompt$" {
-           kfail "gdb/24541" "${testname}"
-       }
-       -re "\\*stopped,reason=\"breakpoint-hit\".*func=\"main\".*line=\"${main_lineno}\".*$mi_gdb_prompt$" {
-           pass "${testname}"
-       }
-       timeout {
-           fail "${testname} (timeout)"
-       }
-    }
+    continue_to_breakpoint_in_main
 }
 
 # Now check that all of the commands with a regexp that does match,
This page took 0.022908 seconds and 4 git commands to generate.