diff options
Diffstat (limited to 'gdb/testsuite/gdb.threads/infcall-from-bp-cond-simple.exp')
-rw-r--r-- | gdb/testsuite/gdb.threads/infcall-from-bp-cond-simple.exp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.threads/infcall-from-bp-cond-simple.exp b/gdb/testsuite/gdb.threads/infcall-from-bp-cond-simple.exp index feec37b..0f068c6 100644 --- a/gdb/testsuite/gdb.threads/infcall-from-bp-cond-simple.exp +++ b/gdb/testsuite/gdb.threads/infcall-from-bp-cond-simple.exp @@ -1,4 +1,4 @@ -# Copyright 2022-2024 Free Software Foundation, Inc. +# Copyright 2022-2025 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -141,6 +141,8 @@ proc_with_prefix run_kill_and_restart_test { target_async target_non_stop } { gdb_start_cmd } +set re_thread_exited {\[Thread [^\r\n]+ exited\]} + # Create a conditional breakpoint which includes a call to a function that # segfaults. Run GDB and check what happens when the inferior segfaults # during the inferior call. @@ -176,7 +178,8 @@ proc_with_prefix run_bp_cond_segfaults { target_async target_non_stop } { "To change this behavior use \"set unwind-on-signal on\"\\." \ "Evaluation of the expression containing the function" \ "\\(function_that_segfaults\\) will be abandoned\\." \ - "When the function is done executing, GDB will silently stop\\."] + "When the function is done executing, GDB will silently stop\\.(" \ + "$::re_thread_exited)?"] } # Create a conditional breakpoint which includes a call to a function that @@ -210,7 +213,8 @@ proc_with_prefix run_bp_cond_hits_breakpoint { target_async target_non_stop } { "The program being debugged stopped while in a function called from GDB\\." \ "Evaluation of the expression containing the function" \ "\\(function_with_breakpoint\\) will be abandoned\\." \ - "When the function is done executing, GDB will silently stop\\."] + "When the function is done executing, GDB will silently stop\\.(" \ + "$::re_thread_exited)?"] } foreach_with_prefix target_async { "on" "off" } { |