gdb/
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.mi / mi-break.exp
index 01c74228460b8627cfc529fdddf7c5d3bffd7b59..969cf4c4bc99104fc2578627c435f7289a483cea 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999, 2001, 2004, 2006, 2007, 2008, 2009, 2010
+# Copyright 1999, 2001, 2004, 2006, 2007, 2008, 2009, 2010, 2011
 # Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
@@ -232,10 +232,19 @@ proc test_breakpoint_commands {} {
         "\\^done" \
         "breakpoint commands: set commands"
 
-    mi_send_resuming_command "exec-continue" "test hitting breakpoint with commands"
-    mi_gdb_test "" \
-        ".*\\\$1 = 0.*\\\$10 = 9.*\\*running.*\\*stopped,reason=\"exited-normally\".*" \
-        "test hitting breakpoint with commands"
+    mi_send_resuming_command "exec-continue" "breakpoint commands: continue"
+
+    set test "intermediate stop and continue"
+    gdb_expect {
+        -re ".*\\\$1 = 0.*\\\$10 = 9.*\\*running" {
+           pass $test
+       }
+        timeout {
+           fail $test
+        }
+    }
+
+    mi_expect_stop "exited-normally" "" "" "" "" "" "test hitting breakpoint with commands"
 }
 
 test_tbreak_creation_and_listing
This page took 0.023896 seconds and 4 git commands to generate.