public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
From: Tom de Vries <vries@sourceware.org>
To: gdb-cvs@sourceware.org
Subject: [binutils-gdb] [gdb/testsuite] Fix gdb.base/skip-solib.exp for remote target
Date: Tue,  7 Mar 2023 14:45:50 +0000 (GMT)	[thread overview]
Message-ID: <20230307144550.02618385B507@sourceware.org> (raw)

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

commit e9f59c6f6c02242c272171e28dd6dfec2fcf7a1c
Author: Tom de Vries <tdevries@suse.de>
Date:   Tue Mar 7 15:45:47 2023 +0100

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

Diff:
---
 gdb/testsuite/gdb.base/skip-solib.exp | 2 ++
 1 file changed, 2 insertions(+)

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\\." \

                 reply	other threads:[~2023-03-07 14:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230307144550.02618385B507@sourceware.org \
    --to=vries@sourceware.org \
    --cc=gdb-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).