From: Ulrich Weigand Date: Fri, 15 Jul 2011 14:13:00 +0000 (+0000) Subject: * gdb.base/type-opaque.exp: Use gdb_load_shlibs. Run test on X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce4515734c38eb2f2dbfb72a408a9282ab980817;p=binutils-gdb.git * gdb.base/type-opaque.exp: Use gdb_load_shlibs. Run test on remote targets as well. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 18ddc59e3de..9b6a2a16d3a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-07-15 Ulrich Weigand + + * gdb.base/type-opaque.exp: Use gdb_load_shlibs. Run test on + remote targets as well. + 2011-07-15 Ulrich Weigand * lib/gdb.exp (gdb_compile_shlib_pthreads): New helper. diff --git a/gdb/testsuite/gdb.base/type-opaque.exp b/gdb/testsuite/gdb.base/type-opaque.exp index d83e9521b19..8587351f2c4 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"