]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix regexp in gdb.threads/stepi-over-clone.exp
authorTom de Vries <tdevries@suse.de>
Fri, 21 Jun 2024 14:53:19 +0000 (16:53 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 21 Jun 2024 14:53:19 +0000 (16:53 +0200)
On fedora rawhide, I ran into:
...
(gdb) continue^M
Continuing.^M
^M
Catchpoint 2 (call to syscall clone3), 0x000000000042097d in __clone3 ()^M
(gdb) FAIL: gdb.threads/stepi-over-clone.exp: continue
...

Fix this by updating a regexp to also recognize __clone3.

Tested on x86_64-linux.

Tested-By: Guinevere Larsen <blarsen@redhat.com>
gdb/testsuite/gdb.threads/stepi-over-clone.exp

index f671fd7b8bd227ca3b5d515ed8a218c5fda03de4..da8bbf6a215e92c51b60a015893f670029b31224 100644 (file)
@@ -48,7 +48,7 @@ gdb_test_multiple "catch syscall group:process" "catch process syscalls" {
     }
 }
 
-set re_loc1 "$hex in clone\[23\]? \\(\\)"
+set re_loc1 "$hex in (__)?clone\[23\]? \\(\\)"
 set re_loc2 "$decimal\[ \t\]+in \[^\r\n\]+"
 set re_loc3 "clone\[23\]? \\(\\) at \[^:\]+:$decimal"