* 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/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
 
 # 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"
 
 }
 
 clean_restart $executable
+gdb_load_shlibs $libobj1 $libobj2
 
 if ![runto_main] {
     untested "could not run to main"
 
 }
 
 clean_restart $executable
+gdb_load_shlibs $libobj1 $libobj2
 
 if ![runto_main] {
     untested "could not run to main"
 
     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]