public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Fix gdb.cp/breakpoint-shlib-func.exp with remote-gdbserver-on-localhost
@ 2023-03-07 10:11 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2023-03-07 10:11 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a50a8e305d4406d96adb5b2967236d7b8767997f

commit a50a8e305d4406d96adb5b2967236d7b8767997f
Author: Tom de Vries <tdevries@suse.de>
Date:   Tue Mar 7 11:11:03 2023 +0100

    [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.

Diff:
---
 gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp b/gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp
index dc7c4a8a8ea..3745bfbd952 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"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-07 10:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-07 10:11 [binutils-gdb] [gdb/testsuite] Fix gdb.cp/breakpoint-shlib-func.exp with remote-gdbserver-on-localhost Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).