Fix gdb.threads/dlopen-libpthread.exp crash
authorSimon Marchi <simon.marchi@ericsson.com>
Wed, 6 Apr 2016 20:49:37 +0000 (16:49 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Wed, 6 Apr 2016 20:49:38 +0000 (16:49 -0400)
commitc2f901dfb6cb5ae2845a48503df1fe0065085f83
treee6338572638d21df45e9b5c1939c838bc136cfb2
parent147316171d8c1e090f0240133088398725ca8460
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.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/dlopen-libpthread.exp