diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2016-04-06 16:49:37 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2016-04-06 16:49:38 -0400 |
commit | c2f901dfb6cb5ae2845a48503df1fe0065085f83 (patch) | |
tree | e6338572638d21df45e9b5c1939c838bc136cfb2 /gdb/testsuite/gdb.threads | |
parent | 147316171d8c1e090f0240133088398725ca8460 (diff) | |
download | gdb-c2f901dfb6cb5ae2845a48503df1fe0065085f83.zip gdb-c2f901dfb6cb5ae2845a48503df1fe0065085f83.tar.gz gdb-c2f901dfb6cb5ae2845a48503df1fe0065085f83.tar.bz2 |
Fix gdb.threads/dlopen-libpthread.exp crash
Following, commit
6e774b13c3b81ac2599812adf058796948ce7e95 Make ftrace tests work with remote targets
the test gdb.threads/dlopen-libpthread.exp started to fail with:
ERROR: error copying "/home/emaisin/build/binutils-gdb/gdb/testsuite/gdb.threads/dlopen-libpthread.so": no such file or directory
This is because the library path is not computed using
standard_output_file, so we try to gdb_load_shlibs an unexisting file.
gdb/testsuite/ChangeLog:
* gdb.threads/dlopen-libpthread.exp: Set binfile_lib using
standard_output_file. Remove unused binfile variable.
Diffstat (limited to 'gdb/testsuite/gdb.threads')
-rw-r--r-- | gdb/testsuite/gdb.threads/dlopen-libpthread.exp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.threads/dlopen-libpthread.exp b/gdb/testsuite/gdb.threads/dlopen-libpthread.exp index 33789cc..206b16a 100644 --- a/gdb/testsuite/gdb.threads/dlopen-libpthread.exp +++ b/gdb/testsuite/gdb.threads/dlopen-libpthread.exp @@ -23,8 +23,7 @@ set testfile "dlopen-libpthread" set srcmainfile ${testfile}.c set srclibfile ${testfile}-lib.c set executable ${testfile} -set binfile_lib ${objdir}/${subdir}/${executable}.so -set binfile ${objdir}/${subdir}/${executable} +set binfile_lib [standard_output_file ${executable}.so] set lib_dlopen [shlib_target_file ${executable}.so] # Use build_executable_own_libs as prelinked libpthread.so can produce false |