* gdb.base/catch-load.exp: Fix argument to gdb_load_shlibs.
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 1 Aug 2012 13:07:51 +0000 (13:07 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Wed, 1 Aug 2012 13:07:51 +0000 (13:07 +0000)
* gdb.base/ctxobj.exp: Call gdb_load_shlibs.
* gdb.base/print-file-var.exp: Likewise.
* gdb.server/solib-list.exp: Skip on remote targets.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/catch-load.exp
gdb/testsuite/gdb.base/ctxobj.exp
gdb/testsuite/gdb.base/print-file-var.exp
gdb/testsuite/gdb.server/solib-list.exp

index b638681..ec0c388 100644 (file)
@@ -1,5 +1,12 @@
 2012-08-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
 
+       * gdb.base/catch-load.exp: Fix argument to gdb_load_shlibs.
+       * gdb.base/ctxobj.exp: Call gdb_load_shlibs.
+       * gdb.base/print-file-var.exp: Likewise.
+       * gdb.server/solib-list.exp: Skip on remote targets.
+
+2012-08-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
        * gdb.base/watchpoint.exp (test_wide_location_1): Expect software
        watchpoints on ARM.  When expecting software watchpoints, tolerate
        (remote) targets that report unsupported hardware watchpoint only
index 787d360..97fe7d1 100644 (file)
@@ -47,12 +47,12 @@ if { [gdb_compile_shlib "${srcdir}/${subdir}/${srcfile2}" ${binfile2} {debug}] !
 # KIND is passed to the "catch" command.
 # MATCH is a boolean saying whether we expect the catchpoint to be hit.
 proc one_catch_load_test {scenario kind match sostop} { with_test_prefix "${scenario}" {
-    global verbose testfile testfile2 binfile2_dlopen
+    global verbose testfile testfile2 binfile2 binfile2_dlopen
     global srcfile
     global decimal gdb_prompt
 
     clean_restart $testfile
-    gdb_load_shlibs $binfile2_dlopen
+    gdb_load_shlibs $binfile2
 
     if {![runto_main]} {
        fail "can't run to main"
index 391ac38..b41ed38 100644 (file)
@@ -51,6 +51,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${executable}.c" \
 }
 
 clean_restart $executable
+gdb_load_shlibs $libobj1 $libobj2
 
 if ![runto_main] {
     untested "could not run to main"
index d0ab575..994abc4 100644 (file)
@@ -42,6 +42,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${executable}.c" \
 }
 
 clean_restart $executable
+gdb_load_shlibs $libobj1 $libobj2
 
 if ![runto_main] {
     untested "could not run to main"
index fc54006..7fbfefc 100644 (file)
@@ -27,6 +27,12 @@ if {[skip_gdbserver_tests] || [skip_shlib_tests]} {
     return
 }
 
+# This test case (currently) does not support remote targets, since it
+# assumes the ELF interpreter can be found on the host system
+if [is_remote target] then {
+    return
+}
+
 standard_testfile solib-list-main.c
 set srclibfile ${testfile}-lib.c
 set binlibfile [standard_output_file ${testfile}.so]