From patchwork Tue Mar 7 10:11:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 66071 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4D02A38582B0 for ; Tue, 7 Mar 2023 10:11:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D02A38582B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678183902; bh=UyEJTMWYyNm5kcmiIEwXQ6RUmy+HnLIkiubfe3/FU4Y=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=nqvSAGYetlfMKppcH3bTmfyqssf29NQg00JBJ7+zDbe0gBvXwqgb/R/C4B0OdwjUg EaZJlSrXovw2JD4QAcvDCiigfuZwihMcMePZS7E3IADxx/OpaFcwLTe7zk9BVrquFU VuSaJrTuLQ7R9/CARzwriSUD5ADTdVAlCEIoeXb0= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 08C953858D39 for ; Tue, 7 Mar 2023 10:11:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 08C953858D39 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 3CDF91FE18 for ; Tue, 7 Mar 2023 10:11:19 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 2961E1341F for ; Tue, 7 Mar 2023 10:11:19 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id qUX5CMcNB2RFWAAAMHmgww (envelope-from ) for ; Tue, 07 Mar 2023 10:11:19 +0000 To: gdb-patches@sourceware.org Subject: [pushed] [gdb/testsuite] Fix gdb.cp/breakpoint-shlib-func.exp with remote-gdbserver-on-localhost Date: Tue, 7 Mar 2023 11:11:24 +0100 Message-Id: <20230307101124.14410-1-tdevries@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tom de Vries via Gdb-patches From: Tom de Vries Reply-To: Tom de Vries Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" 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 | 2 ++ 1 file changed, 2 insertions(+) base-commit: e8850b52624245a1d7b8ef9fc41abb6175ec74e4 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"