diff --git a/gdb/testsuite/gdb.ada/catch_ex_std.exp b/gdb/testsuite/gdb.ada/catch_ex_std.exp index 6035535d10e..2d201a77717 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 }