From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 4RY5DH2TBGvP9S8AWB0awg (envelope-from ) for ; Mon, 23 Nov 2026 14:26:53 -0500 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=dBhBs/y2; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 2E7C61E167; Mon, 23 Nov 2026 14:26:53 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 87E0C1E023 for ; Mon, 23 Nov 2026 14:26:52 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1D3C943E0C8F for ; Mon, 23 Nov 2026 19:26:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1D3C943E0C8F Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=dBhBs/y2 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id F3D535219596 for ; Mon, 23 Nov 2026 19:26:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F3D535219596 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org F3D535219596 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::32a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795461988; cv=none; b=Lr8ZnrXMzexWVaMzIzK4YOWvnzyuOHEy1ZIehlcJQYGe/PsuJgbAyDSk2tbczm3CIph15E0rVGTnAqSKyQmd0QCvLFSfd+aWs4diKLe/5jn1Sx116z9qNXmO+3foAVe2rW+9/nFuixAoRe62kaA1W79FzsCD36PmBDVYdSIoqe4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795461988; c=relaxed/simple; bh=t9FmXfHta7QsXZ6z2hunUMgWVAhl7Yng2PEgyKgQKsc=; h=DKIM-Signature:To:Date:Message-ID:MIME-Version:From:Subject; b=rPi1h7CGUIWkJ4NQAu0OB6E4Cy6S4QIvaeQUXK3kyqHZ11Z9Yt3hEGUfQStyten+FeoLNEPjNigNxV1UuunJ4ZQbFrlxg8riXikuFxqC3au0Cqy8Zd1DhHdfVsYZ+SAjik7c+KhzzlWGemmxIp+nmY6tyIFuPvEePTYXquT1e3E= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=dBhBs/y2 DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F3D535219596 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-4a5177d78c7so36090615e9.2 for ; Mon, 23 Nov 2026 11:26:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795461987; x=1796066787; darn=sourceware.org; h=subject:from:content-transfer-encoding:content-type:mime-version :references:in-reply-to:message-id:date:cc:to:from:to:cc:subject :date:message-id:reply-to:content-type; bh=TyfPbz8gpuk6uCaYufisxnXBUKnZXqXbePO+xrOfFbg=; b=dBhBs/y2pcsvQrWRbnsBOD/PtULR/T0q/s3BRBMVeM86ZRO7wxQ9X/UhIkViKGwKf8 /9WJ5DFzctgk+EEWes25RPZ4x7mDxM6owYTTAe6c3rRTCZLEjQqBiNqeNG7+T1BGvOl/ ZdsgGKz+EsM5adtM8fFrZNkiCpoKN7J4rco6cipoTC1TX34aEDqV/BiApTorOePF3CIf pvxMTmxjR37ElfverZF5qyCrOqQxW4SnP80k4j1AbZ2Wgn9RNng+LbI/CSccBTNO+nTq t6wEdNNYMRWGNgRSuk3n7UfDwq81iSevoxWLQ6Sz+TEyVsXOyHpFkRvY7I7hKEM16+4d 6bdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795461987; x=1796066787; h=subject:from:content-transfer-encoding:content-type:mime-version :references:in-reply-to:message-id:date:cc:to:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=TyfPbz8gpuk6uCaYufisxnXBUKnZXqXbePO+xrOfFbg=; b=Bm+DWdpTMq1oFSSyUbCsirhQVey4FpBKyKVA3E5KxU64ugxYr6mmdwL43Tzg9yKTzR sUuAN+802KDYB3K1ME8dhCs9fy/vpb+pLxXUeoX+vBwwI5DuHZHZCdsjJ+mTMH5Hsb/W BdgXc+LTegw+r0t1579glOPEovy5GAht7BGW1F/x96Sn1imUCddlpdxuybXQ4ctIzKj7 /aDH0tzM8T2A3P7X5zJp8whAfhx1Uto6idWei6ghTAlxSD1oL/KjfT4NC0g2ApRlAHyV AT+J9RSgvQvtD91cZ2eZx2WemFeEgYAZZJnRIoBbhnowY82YZdis3pbnu7KHCqfPTmn2 r6Hg== X-Gm-Message-State: APuU4Z85TiNdlA3eh1ABwSu4dvzbC2E1KPttfgEm7ujMfQV4bZJ/qOZL yESI2jLfUT/SFwhaKm8Sxieqovk/L9ZcWqXvT/bSUX4+DbBw+Tjnyx5+qCSOSw== X-Gm-Gg: AZFdTZdwC04o5/k1X7gMvquTCbbaUUNYR0O4bpfXIu7fsSfytIxAEjKE5GG8iL3HZrz fHM/Xd9V26KwVC5A78ZL4LoDU7ONR0jpEPg5CM+1Dp0ikSVcEGOW6sjsZ57ZrXS4TQwOwaJX+Bl mC/PPzI59nNeZF8SUcuHnPQHFXr6TPb1MKeDt+wc+BjZdROB+PFTKDBFRjeOE9l1V2D5HyK1CQs 0dHpP50k1v0BRYR238JglV2Aq85UajCKrIFp6gQMm4gdJqLX2s4/gUcT59+INHgQ8BpxyfkVAw/ eKs8wFu8mXJ8AdEGhwSAZ+DjmemuLsdZBQIjZf5+wsn6rZJh3ZIlsEcFGHOjjWXCsAaOG8GSa1d WXc2rFHAnTetc8c66dUsdOPd3NaI6haAaZXdesNzWMMGfVIp0F3PWq+oFjNGEywt7HsiY44mQ7F FT2RQ6bryZb1W/Yo494GsMKsa2jjXMtA2yeNrAAMJBun5FJ/8NP57JXsxZWdUDSCm4XzrmeLtht iq1C7eL5Iq4Q52nZrClUARpUAvkiuABSQcD8+bO4DAe2oJY4Rhtjmp3DmGRFQG1ng6CKyFb632a Pk37YyJPuI3kIJpr7EuL7IaFGczwSYP8ORcmso6DwPtRQI9HKXiJro6OucvzhVFoex8kWMMiHg= = X-Received: by 2002:a05:600c:4e87:b0:4bb:534b:ada4 with SMTP id 5b1f17b1804b1-4bb8881e95dmr262457455e9.33.1795461986714; Mon, 23 Nov 2026 11:26:26 -0800 (PST) Received: from [127.0.1.1] (i6DFA7C20.versanet.de. [109.250.124.32]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb90660cb4sm299507965e9.2.2026.11.23.11.26.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2026 11:26:26 -0800 (PST) To: gdb-patches@sourceware.org Cc: Stephan Rohr , Tom de Vries Date: Mon, 23 Nov 2026 19:26:12 +0000 Message-ID: <179546197271.5351.11704735739252728611@gmail.com> In-Reply-To: References: <179416437016.1563346.4393252796548961752@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Josip Seketa Subject: [PATCH v2] gdb/testsuite: set up the new inferior in remove-inferiors.exp X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org With the native-extended-gdbserver board, remove-inferiors.exp fails: (gdb) run Starting program: .../remove-inferiors Running the default executable on the remote target failed; try "set remote exec-file"? FAIL: gdb.multi/remove-inferiors.exp: runto: run to main "set remote exec-file" is per inferior. The board sets it for inferior 1, but the test removes inferior 1 and runs the program in inferior 2, where it loads the binary with a plain "file", so the remote side has nothing to run. Load the binary with gdb_load instead so that the board sets the inferior up. Reviewed-By: Stephan Rohr --- Changes in v2: no comma before "so that" in the new comment (and in the commit message), as Stephan suggested. Tested on x86_64 GNU/Linux: native-extended-gdbserver 5 PASS 1 FAIL -> 7 PASS, also with "maint set target-non-stop on"; native-gdbserver and unix 8 PASS -> 7 PASS (the "load binary" test is gone). I have no FSF copyright assignment. This is my own work, not my employer's. gdb/testsuite/gdb.multi/remove-inferiors.exp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gdb/testsuite/gdb.multi/remove-inferiors.exp b/gdb/testsuite/gdb.multi/remove-inferiors.exp index ae2ecdffb83..2514ec392d8 100644 --- a/gdb/testsuite/gdb.multi/remove-inferiors.exp +++ b/gdb/testsuite/gdb.multi/remove-inferiors.exp @@ -46,12 +46,12 @@ proc test_remove_inferiors { } { # Test that it is possible to remove a non-active non-current inferior. gdb_test_no_output "remove-inferiors 1" "remove non-current inferior" - # Load binfile and start the inferior. - set binfile_re [string_to_regexp ${binfile}] - gdb_test "file ${binfile}" \ - [multi_line "Reading symbols from ${binfile_re}\.\.\.(" \ - "Expanding full symbols from ${binfile_re}\.\.\.)?" ] \ - "load binary" + # Load binfile and start the inferior. Use gdb_load so that the + # board sets this inferior up too: the remote exec-file is per + # inferior. + if {[gdb_load ${binfile}] != 0} { + return + } if {![runto_main]} { return -- 2.56.0