From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id NP/LIMHG8GparjUAWB0awg (envelope-from ) for ; Sun, 08 Nov 2026 14:00:17 -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=BIlwOa88; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 6DF2A1E023; Sun, 08 Nov 2026 14:00:17 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.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,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED 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 9BBE91E023 for ; Sun, 08 Nov 2026 14:00:16 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 33DB54BA2E28 for ; Sun, 8 Nov 2026 19:00:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 33DB54BA2E28 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=BIlwOa88 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id 9D35D4BA2E08 for ; Sun, 8 Nov 2026 18:59:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9D35D4BA2E08 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 9D35D4BA2E08 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::433 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794164386; cv=none; b=RQhLQxPZC2P54ZphXTgaBC8ZJFTZSYwutxFEW2ncMT3Xd6JK7W0yCAJVY8S8DZNl8RTeGoeUxK0VoUYAl320uZMRGa0ezT37JICvVKUq89vdqBlVNjppF9aS5wfNWHrhuO4rUfO9K4f/OvsewPSik0ERfIKqYbI4svpXHkUPeMM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794164386; c=relaxed/simple; bh=bVGMVSdUrpx0Rp8nfUjjKlflaVgDlpy4r3T5Db0s3/Q=; h=DKIM-Signature:To:Date:Message-ID:MIME-Version:From:Subject; b=DgDceeMB332IPlmBpOsISiu1LG7LO2bMYaAejKoA1poFHZtiUFdXXwl18+fOK05hK0FoyFmPIgnqUe6yN5oL7w5o+iXOGCaAAHLMq2IChj+pGy4C31ZaxJgpjqVfLSqLnsSNNfAXW3yjmDhv0GQLJwak0nW9FB+owV1FP93iKVk= 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=BIlwOa88 DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D35D4BA2E08 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-4922dbcee23so101787f8f.0 for ; Sun, 08 Nov 2026 10:59:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794164385; x=1794769185; darn=sourceware.org; h=subject:from:content-transfer-encoding:content-type:mime-version :message-id:date:cc:to:from:to:cc:subject:date:message-id:reply-to :content-type; bh=DkjKyo0Bn34m0VoEXQQ25gelEJd4NeeNhvtSl9WY6YI=; b=BIlwOa88f7jdoAz5dxNMcivPzS1G9oOBfeIsuidst5kyfWbisT2zk6NSxFSc2gQLpV 8REcjjqAxVTUUHpa5H98OpgHYO9Xo0Wlndwyn4t4s6s0w7wVWsShVY5gNea5n61iWEEn 4ImqnTO5tV3s3Ud0RkhBPd30RSqp5L+SIjlkL5/oL/fnDUZ6r28dfSybNuQwYEwgmYAG SOlhW7jkn6iGcQghIiIT/++Lb3C1XR6n5LnRK3Ueu7QUf6vsjF4LHGiCFb3f5a9U90LR iEGA/6Y6ZSBPUo1GclbhM6JS+kl3BRKwPxCbEBCTNdRzimLQzHcJNmnKLqkmy2DZvciE DZUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794164385; x=1794769185; h=subject:from:content-transfer-encoding:content-type:mime-version :message-id:date:cc:to:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=DkjKyo0Bn34m0VoEXQQ25gelEJd4NeeNhvtSl9WY6YI=; b=NkLBMG3BdqwtIKCb02LtDOOIPyeDEn/sMLRxOzoUMxpdooyyimZtHFMd4RI3ooeyfb /f1RCfS3arqkoHdI7utOXJcfAZJOIAn09yA6apSP0S2S+SvmLSQzMi/H7ZY4ik2brZEp ZM6u35LLupL3RdV5pUVhiS5ertkrsuTlcnRwezzW4M1gmG5iLgPnmBBt3CxVeSa/qbXt 2dTTTIzaE4sR/VfG8LAA3EgBPKIogVoqHdSNojtNZ5d4hHkT/IzyOeJ42Q9LL9U0Va6Y wW+A8w8ujAApEPdoB36yOsx4T9esl5xiPc3fynRYnmheJX2StPLfE6pWY1ueKNHH3jFH +WyA== X-Gm-Message-State: APuU4Z8PDN2T1CxfzgtLROQ9/Fxlb96ePPwteD5i3bOFtb4FrSeswT7C xSS3k47bNGRTEzLhvJfEEgBOdpwwpAZINon4+1202h67kwqXC7nCbVvjPuaROQ== X-Gm-Gg: AYBFou1Z2iVJb7M+/60k8d2aCSMWSObj4B676uaSrEVn6bx7qrajjw3Wc4EZdfl2myZ 8GVydYEVHZZdQoIhghs6R3zoOsoWt4C3Fij45MYtwV2J6PnAucgZcBrI2b3/fF4Go7QdB1qchu8 GjyLDHFKxmUhJm+FcneVidkL5fpMBce03Ytz0iEx5mZeXRdFViHAJWA/KmPsnAkyH6j0YY32rdZ sE6ZeCgaMniRQvP992J98yCdsc3hcoVmg9Lpxg5PkwkNIZXNUJe+edhVnWi4cSS9pe5C23eTDNZ 1lhNbAY9kvcxQSGw9s3dhXPZb517DpCHDbjvzY8bVMn7h5QGr9WE7ibqsBnPXpmglvrTcJb3P+V Bcvu+sObTehaPbvuNK7HN/MuiZRV/ATHPM/bXa926ap7M6rBqykXZo8hDurthPFGGXr0XHdaQHs JdqDYV/D2EugIVdcvTcztTQD01E0sGBXYYOqCNmODODtatgyPFWvhl+3MfVsUjsb2DIjKFKwwrI 2xJL9E/BIloH18TJBINW7P1EJQHRaDfcFpCc4XC6y7MqsG9ZVB/NwV6LXmTIw2pxUhN+XT+URDt SF4SRprMg4ff4Lzh4eLpwQlkrI3od2K9oBlTNzfKuSba1QXWmXCL2w== X-Received: by 2002:a05:6000:186b:b0:48e:7026:5243 with SMTP id ffacd0b85a97d-495829c1110mr4290687f8f.20.1794164384710; Sun, 08 Nov 2026 10:59:44 -0800 (PST) Received: from [127.0.1.1] ([212.23.215.109]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-49597652ca7sm5719456f8f.39.2026.11.08.10.59.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Nov 2026 10:59:44 -0800 (PST) To: gdb-patches@sourceware.org Cc: Tom de Vries Date: Sun, 08 Nov 2026 18:59:30 +0000 Message-ID: <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] 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. --- 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