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)
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

index 27806a06eb7902c4db1af661962246335404010c..df160239a4c10bedb90e8dc7f56e858cfbae4aae 100644 (file)
@@ -1,3 +1,8 @@
+2016-04-06  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * gdb.threads/dlopen-libpthread.exp: Set binfile_lib using
+       standard_output_file.  Remove unused binfile variable.
+
 2016-04-05  Catalin Udma  <catalin.udma@freescale.com>
 
        * gdb.python/py-mi-objfile-gdb.py: Use "list main" command.
index 33789cc141b4dd97c9f68abfc93d8000fe1ac251..206b16a4e09c3362ec4b1c8c4814bd73a488b81c 100644 (file)
@@ -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
This page took 0.029341 seconds and 4 git commands to generate.