aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2022-05-08 14:05:27 +0200
committerTom de Vries <tdevries@suse.de>2022-05-08 14:05:27 +0200
commitc7dad3e9f9620b1dd9b7c72523513590552993b2 (patch)
tree08d8a06a46bfc2a3c7f462a1f5b8db64e4969c68 /gdb
parentefd1a8512f9d749861498bb3e9756727cda5e230 (diff)
downloadgdb-c7dad3e9f9620b1dd9b7c72523513590552993b2.zip
gdb-c7dad3e9f9620b1dd9b7c72523513590552993b2.tar.gz
gdb-c7dad3e9f9620b1dd9b7c72523513590552993b2.tar.bz2
[gdb/testsuite] Fix gdb.ada/catch_ex_std.exp with remote-gdbserver-on-localhost
When running test-case gdb.ada/catch_ex_std.exp on target board remote-gdbserver-on-localhost, I run into: ... (gdb) continue^M Continuing.^M [Inferior 1 (process 15656) exited with code 0177]^M (gdb) FAIL: gdb.ada/catch_ex_std.exp: runto: run to main Remote debugging from host ::1, port 49780^M /home/vries/foo: error while loading shared libraries: libsome_package.so: \ cannot open shared object file: No such file or directory^M ... Fix this by adding the usual shared-library + remote-target helper "gdb_load_shlib $sofile". Tested on x86_64-linux with native and target board remote-gdbserver-on-localhost.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.ada/catch_ex_std.exp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.ada/catch_ex_std.exp b/gdb/testsuite/gdb.ada/catch_ex_std.exp
index 6035535..2d201a7 100644
--- a/gdb/testsuite/gdb.ada/catch_ex_std.exp
+++ b/gdb/testsuite/gdb.ada/catch_ex_std.exp
@@ -63,6 +63,10 @@ if {[gdb_compile_ada $srcfile $binfile executable $options] != ""} {
clean_restart ${testfile}
+# Do whatever is necessary to make sure that the shared library is
+# loaded for remote targets.
+gdb_load_shlib $sofile
+
if {![runto_main]} then {
return 0
}