aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-01-11 18:37:20 +0100
committerTom de Vries <tdevries@suse.de>2023-01-11 18:37:20 +0100
commit1b9af5b949bff0c750ededb459400c1857fec416 (patch)
tree55a139ccdda4aec1a141c987ed3453dfd8ea6bd2 /gdb
parent1b9876fa8d28c152846e441400c02445bffa1653 (diff)
downloadgdb-1b9af5b949bff0c750ededb459400c1857fec416.zip
gdb-1b9af5b949bff0c750ededb459400c1857fec416.tar.gz
gdb-1b9af5b949bff0c750ededb459400c1857fec416.tar.bz2
[gdb/testsuite] Fix regexp in gdb.threads/dlopen-libpthread.exp
Fix regexp in gdb.threads/dlopen-libpthread.exp: 'libpthread\\.so' -> '/libpthread\\.so'. Tested on x86_64-linux.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.threads/dlopen-libpthread.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.threads/dlopen-libpthread.exp b/gdb/testsuite/gdb.threads/dlopen-libpthread.exp
index 134265f..c97e028 100644
--- a/gdb/testsuite/gdb.threads/dlopen-libpthread.exp
+++ b/gdb/testsuite/gdb.threads/dlopen-libpthread.exp
@@ -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
}