* gdb.mi/mi-pending.exp: Use mi_load_shlibs, not gdb_load_shlibs.
+2008-07-31 Vladimir Prus <vladimir@codesourcery.com>
+
+ * lib/mi-support.exp (mi_load_shlibs): New.
+ * gdb.mi/mi-pending.exp: Use mi_load_shlibs, not gdb_load_shlibs.
+
2008-07-30 Vladimir Prus <vladimir@codesourcery.com>
* lib/mi-support.exp (get_mi_thread_list)
mi_gdb_start
mi_gdb_reinitialize_dir $srcdir/$subdir
mi_gdb_load ${binfile}
-gdb_load_shlibs $lib_sl
+mi_load_shlibs $lib_sl
if [target_info exists gdb_stub] {
gdb_step_for_stub;
}
}
}
+
+proc mi_load_shlibs { args } {
+ if {![is_remote target]} {
+ return
+ }
+
+ foreach file $args {
+ gdb_download $file
+ }
+
+ # Even if the target supplies full paths for shared libraries,
+ # they may not be paths for this system.
+ mi_gdb_test "set solib-search-path [file dirname [lindex $args 0]]" "\^done" ""
+}
+