[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.
This commit is contained in:
Tom de Vries
2023-03-07 11:11:03 +01:00
parent 60204874f5
commit a50a8e305d

View File

@@ -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"