projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6020487
)
[gdb/testsuite] Fix gdb.cp/breakpoint-shlib-func.exp with remote-gdbserver-on-localhost
author
Tom de Vries
<tdevries@suse.de>
Tue, 7 Mar 2023 10:11:03 +0000
(11:11 +0100)
committer
Tom de Vries
<tdevries@suse.de>
Tue, 7 Mar 2023 10:11:03 +0000
(11:11 +0100)
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.
gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp
patch
|
blob
|
history
diff --git
a/gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp
b/gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp
index dc7c4a8a8eaeee983ced41e493d148a44ef1eed3..3745bfbd952331bdb6b5a2fd9ead29ec2004cece 100644
(file)
--- 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"