]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb.threads/schedlock.exp: Expected SIGTRAP too (WIP)
authorPedro Alves <pedro@palves.net>
Wed, 7 Jun 2023 13:53:00 +0000 (14:53 +0100)
committerPedro Alves <pedro@palves.net>
Mon, 9 Jun 2025 17:49:19 +0000 (18:49 +0100)
The 'Windows all-stop, interrupt with "stopped" instead of SIGTRAP'
patch should make this unnecessary.

Change-Id: I06925ae317784e6babd57a8d1904945bb01d2b9d

gdb/testsuite/gdb.threads/schedlock.exp

index 4e2b835057f0a584949f375e4024c70be6554704..a81487410338de670fe0589efc79dcb62dbbddd8 100644 (file)
@@ -70,6 +70,10 @@ proc stop_process { description } {
       {
        pass $description
       }
+    -re "Thread .* received signal SIGTRAP.*$gdb_prompt $"
+      {
+       pass $description
+      }
     timeout
       {
        fail "$description (timeout)"
@@ -94,7 +98,7 @@ proc get_current_thread { description } {
 # Make sure we're stopped in the loop, in one of the non-main threads.
 
 proc goto_loop { msg } {
-    gdb_breakpoint [concat [gdb_get_line_number "schedlock.exp: main loop"] " if arg != 0"]
+    gdb_breakpoint [concat "$::srcfile:" [gdb_get_line_number "schedlock.exp: main loop"] " if arg != 0"]
 
     set test "return to loop"
     if {$msg != ""} {