]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix regexp in gdb.threads/dlopen-libpthread.exp
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 11 Jan 2023 17:37:20 +0000 (18:37 +0100)
committerTom de Vries <tdevries@suse.de>
Wed, 11 Jan 2023 17:37:20 +0000 (18:37 +0100)
Fix regexp in gdb.threads/dlopen-libpthread.exp:
'libpthread\\.so' -> '/libpthread\\.so'.

Tested on x86_64-linux.

gdb/testsuite/gdb.threads/dlopen-libpthread.exp

index 134265ff4702f9951abccc862422d171febf2b4d..c97e0284475b339e45047f1e004eeb37a1236af0 100644 (file)
@@ -68,14 +68,14 @@ if { !$have_probe } {
 # due to LD_PRELOAD.
 set libpthread_maybe_preloaded 0
 set binfile [standard_output_file $executable]
-if { [has_dependency $binfile libpthread\\.so] == 1 } {
+if { [has_dependency $binfile /libpthread\\.so] == 1 } {
     set libpthread_maybe_preloaded 1
 }
 
 # We link the shlib with -lpthread, but since glibc 2.34 libpthread has been
 # merged with libc, so libpthread.so may not be a dependency.
 set libpthread_missing 0
-if { [has_dependency $binfile_lib libpthread\\.so] == 0 } {
+if { [has_dependency $binfile_lib /libpthread\\.so] == 0 } {
     set libpthread_missing 1
 }