diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2011-08-04 11:56:29 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2011-08-04 11:56:29 +0000 |
commit | 724f4f803fdf847c971f47f1dec8deb3ab6842d2 (patch) | |
tree | a13be31231b080d2f42c639969ae6d38deaf80c6 /gdb/testsuite/gdb.base/jit.exp | |
parent | 5e9f6467f770557e650283258f6a4352519a6683 (diff) | |
download | gdb-724f4f803fdf847c971f47f1dec8deb3ab6842d2.zip gdb-724f4f803fdf847c971f47f1dec8deb3ab6842d2.tar.gz gdb-724f4f803fdf847c971f47f1dec8deb3ab6842d2.tar.bz2 |
* gdb.base/jit.exp: Download solib_binfile to target.
* gdb.base/jit-so.exp: Likewise. Also, use gdb_load_shlibs
and call dlopen without full path name.
* gdb.cp/infcall-dlopen.exp: Use gdb_load_shlibs and call
dlopen without full path name.
Diffstat (limited to 'gdb/testsuite/gdb.base/jit.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/jit.exp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/jit.exp b/gdb/testsuite/gdb.base/jit.exp index 1b731b0..a6a8cc0 100644 --- a/gdb/testsuite/gdb.base/jit.exp +++ b/gdb/testsuite/gdb.base/jit.exp @@ -43,7 +43,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb set solib_testfile "jit-solib" set solib_srcfile "${srcdir}/${subdir}/${solib_testfile}.c" set solib_binfile "${objdir}/${subdir}/${solib_testfile}.so" -set solib_binfile_test_msg "OBJDIR/${subdir}/${solib_testfile}.so" +set solib_binfile_test_msg "SHLIBDIR/${solib_testfile}.so" # Note: compiling without debug info: the library goes through symbol # renaming by munging on its symbol table, and that wouldn't work for .debug @@ -53,8 +53,10 @@ if { [gdb_compile_shlib ${solib_srcfile} ${solib_binfile} {-fPIC}] != "" } { return -1 } +set solib_binfile_target [gdb_download ${solib_binfile}] + proc one_jit_test {count match_str} { - global verbose testfile solib_binfile solib_binfile_test_msg pf_prefix + global verbose testfile solib_binfile_target solib_binfile_test_msg pf_prefix set old_pf_prefix $pf_prefix set pf_prefix "one_jit_test-$count" @@ -77,7 +79,7 @@ proc one_jit_test {count match_str} { # Poke desired values directly into inferior instead of using "set args" # because "set args" does not work under gdbserver. gdb_test_no_output "set var argc = 2" - gdb_test_no_output "set var libname = \"$solib_binfile\"" "set var libname = \"$solib_binfile_test_msg\"" + gdb_test_no_output "set var libname = \"$solib_binfile_target\"" "set var libname = \"$solib_binfile_test_msg\"" gdb_test_no_output "set var count = $count" gdb_breakpoint [gdb_get_line_number "break here 1"] |