From patchwork Tue Mar 7 14:46:03 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: 66087 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 72E34385480D for ; Tue, 7 Mar 2023 14:46:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 72E34385480D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678200383; bh=aLlPSzm6TiDe3W51n8+f09ri6cOAillxnIr+8N7wjfo=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=hXuVqlcoGIDqSLwph9jTHnhZW0uogDR3HURMqfiqMgRGvrH5hR3GGIeDPZjg6ecRd gxaRsZgegKCv7rgSPa6LToC57qtuK6WPI/xXTrLLcZorjQDkaor4SsYzJv7TQUMElr qZcHZVNn017dngUrs9tlS7DMrTl5m+k9glZQeN1I= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id D4C3D3858C20 for ; Tue, 7 Mar 2023 14:45:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D4C3D3858C20 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-out1.suse.de (Postfix) with ESMTPS id DFD8C21A20 for ; Tue, 7 Mar 2023 14:45:57 +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 CACD4139ED for ; Tue, 7 Mar 2023 14:45:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id QDdTMCVOB2QpCQAAMHmgww (envelope-from ) for ; Tue, 07 Mar 2023 14:45:57 +0000 To: gdb-patches@sourceware.org Subject: [pushed 2/2] [gdb/testsuite] Fix gdb.base/skip-solib.exp for remote target Date: Tue, 7 Mar 2023 15:46:03 +0100 Message-Id: <20230307144603.5152-2-tdevries@suse.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230307144603.5152-1-tdevries@suse.de> References: <20230307144603.5152-1-tdevries@suse.de> 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" Fix test-case gdb.base/skip-solib.exp for target board remote-gdbserver-on-localhost using gdb_load_shlib. Tested on x86_64-linux. --- 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\\." \