]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.threads/watchthreads-reorder.exp
gdb: introduce scoped debug prints
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.threads / watchthreads-reorder.exp
index 7cdbba545df951abb6f79ef7f78f9c45c3ec3134..98c6af75213af5ce9c4e724f39842fbf61d745c2 100644 (file)
@@ -90,5 +90,10 @@ foreach reorder {0 1} { with_test_prefix "reorder$reorder" {
     # found in the DEBUG_INFRUN code path.
     gdb_test "set debug infrun 1"
 
-    gdb_continue_to_breakpoint "break-at-exit" ".*break-at-exit.*"
+    set prompt "$gdb_prompt \\\[infrun\\\] fetch_inferior_event: exit\r\n$"
+    gdb_test_multiple "continue" "continue to breakpoint: break-at-exit" -prompt $prompt {
+        -re ".*break-at-exit.*$prompt$" {
+           pass $gdb_test_name
+       }
+    }
 }}