aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-03-07 11:11:03 +0100
committerTom de Vries <tdevries@suse.de>2023-03-07 11:11:03 +0100
commita50a8e305d4406d96adb5b2967236d7b8767997f (patch)
treec96a6da955233b7307afdbe39443d6f8f78d0c48 /gdb
parent60204874f5a987b164f7f194d3f96729847fe329 (diff)
downloadgdb-a50a8e305d4406d96adb5b2967236d7b8767997f.zip
gdb-a50a8e305d4406d96adb5b2967236d7b8767997f.tar.gz
gdb-a50a8e305d4406d96adb5b2967236d7b8767997f.tar.bz2
[gdb/testsuite] Fix gdb.cp/breakpoint-shlib-func.exp with remote-gdbserver-on-localhost
Test-case gdb.cp/breakpoint-shlib-func.exp fails with target board remote-gdbserver-on-localhost. Fix this by adding the missing gdb_load_shlib. Tested on x86_64-linux.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp b/gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp
index dc7c4a8..3745bfb 100644
--- a/gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp
+++ b/gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp
@@ -40,6 +40,8 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
return -1
}
+gdb_load_shlib $libobj
+
# Place the breakpoint before the shared library has been loaded, the
# breakpoint should be placed on the @plt symbol.
gdb_test "break foo" "Breakpoint $decimal at $hex"