aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2011-08-04 11:56:29 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2011-08-04 11:56:29 +0000
commit724f4f803fdf847c971f47f1dec8deb3ab6842d2 (patch)
treea13be31231b080d2f42c639969ae6d38deaf80c6 /gdb/testsuite/gdb.cp
parent5e9f6467f770557e650283258f6a4352519a6683 (diff)
downloadgdb-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.cp')
-rw-r--r--gdb/testsuite/gdb.cp/infcall-dlopen.exp5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/infcall-dlopen.exp b/gdb/testsuite/gdb.cp/infcall-dlopen.exp
index dc7122d..9cfdaa7 100644
--- a/gdb/testsuite/gdb.cp/infcall-dlopen.exp
+++ b/gdb/testsuite/gdb.cp/infcall-dlopen.exp
@@ -27,6 +27,7 @@ set srclibfile ${testfile}-lib.cc
set executable ${testfile}
set libfile ${objdir}/${subdir}/${executable}.so
set binfile ${objdir}/${subdir}/${executable}
+set lib_dlopen [shlib_target_file ${executable}.so]
# Use completely arbitrary file for $libfile source.
if { [gdb_compile_shlib ${srcdir}/${subdir}/${srclibfile} ${libfile} {debug c++}] != ""
@@ -34,12 +35,14 @@ if { [gdb_compile_shlib ${srcdir}/${subdir}/${srclibfile} ${libfile} {debug c++}
return -1
}
+gdb_load_shlibs $libfile
+
if { ![runto_main] } {
return -1
}
for {set i 0} {$i < 10} {incr i} {
- gdb_test "p openlib (\"${libfile}\")" " = 1" "test $i"
+ gdb_test "p openlib (\"${lib_dlopen}\")" " = 1" "test $i"
# Try to exploit the GDB trashed memory.
gdb_test "b openlib" {Breakpoint [0-9]+ at .*} "test $i stub 1"
gdb_test_no_output {delete $bpnum} "test $i stub 2"