summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-03-07 15:45:47 +0100
committerTom de Vries <tdevries@suse.de>2023-03-07 15:45:47 +0100
commite9f59c6f6c02242c272171e28dd6dfec2fcf7a1c (patch)
treeabc1febe19359e3e24f75c1ac20e930876d4efa0
parente06f6174c01db6eb9533beb2121daaaf01a49d6a (diff)
downloadbinutils-gdb-e9f59c6f6c02242c272171e28dd6dfec2fcf7a1c.tar.gz
[gdb/testsuite] Fix gdb.base/skip-solib.exp for remote target
Fix test-case gdb.base/skip-solib.exp for target board remote-gdbserver-on-localhost using gdb_load_shlib. Tested on x86_64-linux.
-rw-r--r--gdb/testsuite/gdb.base/skip-solib.exp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/skip-solib.exp b/gdb/testsuite/gdb.base/skip-solib.exp
index f01196c3fed..9caf7e09dac 100644
--- a/gdb/testsuite/gdb.base/skip-solib.exp
+++ b/gdb/testsuite/gdb.base/skip-solib.exp
@@ -61,6 +61,7 @@ if {[gdb_compile "${binfile_main}.o" "${binfile_main}" executable \
with_test_prefix "ignoring solib file" {
clean_restart ${executable_main}
+ gdb_load_shlib $binfile_lib
gdb_test "skip file ${srcfile_lib}" \
"File ${srcfile_lib} will be skipped when stepping." \
@@ -87,6 +88,7 @@ with_test_prefix "ignoring solib file" {
#
with_test_prefix "ignoring solib function" {
clean_restart ${executable_main}
+ gdb_load_shlib $binfile_lib
gdb_test "skip function multiply" \
"Function multiply will be skipped when stepping\\." \