aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-07-31 07:38:51 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-07-31 07:38:51 +0000
commit5e06a3d1d5dcd15d8a883d3dde9fd90a5a5b8790 (patch)
treeca833f32cc0fe46331add9f5b04cef1061131c35 /gdb/testsuite/lib
parent49314f8728c7d2fcfcaa20771bf7a453901db081 (diff)
downloadgdb-5e06a3d1d5dcd15d8a883d3dde9fd90a5a5b8790.zip
gdb-5e06a3d1d5dcd15d8a883d3dde9fd90a5a5b8790.tar.gz
gdb-5e06a3d1d5dcd15d8a883d3dde9fd90a5a5b8790.tar.bz2
* lib/mi-support.exp (mi_load_shlibs): New.
* gdb.mi/mi-pending.exp: Use mi_load_shlibs, not gdb_load_shlibs.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/mi-support.exp15
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp
index d6ec624..91e5b09 100644
--- a/gdb/testsuite/lib/mi-support.exp
+++ b/gdb/testsuite/lib/mi-support.exp
@@ -1681,3 +1681,18 @@ proc check_mi_and_console_threads {name} {
}
}
}
+
+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" ""
+}
+