aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2011-07-15 14:13:00 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2011-07-15 14:13:00 +0000
commitce4515734c38eb2f2dbfb72a408a9282ab980817 (patch)
tree4ee7ef3d2265c2b001ded02f83671515d29da7ef
parent756d88a7fe366e16ca9239bf12550d6a643cfa19 (diff)
downloadgdb-ce4515734c38eb2f2dbfb72a408a9282ab980817.zip
gdb-ce4515734c38eb2f2dbfb72a408a9282ab980817.tar.gz
gdb-ce4515734c38eb2f2dbfb72a408a9282ab980817.tar.bz2
* gdb.base/type-opaque.exp: Use gdb_load_shlibs. Run test on
remote targets as well.
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/type-opaque.exp7
2 files changed, 6 insertions, 6 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 18ddc59..9b6a2a1 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2011-07-15 Ulrich Weigand <ulrich.weigand@linaro.org>
+ * gdb.base/type-opaque.exp: Use gdb_load_shlibs. Run test on
+ remote targets as well.
+
+2011-07-15 Ulrich Weigand <ulrich.weigand@linaro.org>
+
* lib/gdb.exp (gdb_compile_shlib_pthreads): New helper.
* gdb.threads/tls-shared.exp: Use it. Call gdb_load_shlibs.
diff --git a/gdb/testsuite/gdb.base/type-opaque.exp b/gdb/testsuite/gdb.base/type-opaque.exp
index d83e952..8587351 100644
--- a/gdb/testsuite/gdb.base/type-opaque.exp
+++ b/gdb/testsuite/gdb.base/type-opaque.exp
@@ -30,12 +30,6 @@ set execsrc "${srcdir}/${subdir}/${srcfile}"
remote_exec build "rm -f ${binfile}"
-# Are we on a target board? No support for downloading shared libraries
-# to a target yet.
-if ![isnative] then {
- return 0
-}
-
# get the value of gcc_compiled
if [get_compiler_info ${binfile}] {
return -1
@@ -51,6 +45,7 @@ gdb_exit
gdb_start
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
+gdb_load_shlibs ${libobj}
if ![runto_main] then {
fail "Can't run to main"