From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 4EA073836E87 for ; Wed, 5 Jun 2024 13:27:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4EA073836E87 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4EA073836E87 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717594037; cv=none; b=GbZVkfzLSSVIAF0+q9SKJyq5U3HycmwQhQffnqiuW+H20Xc60acGmi7EswFOMdYm6tAwlQIkIwompJBw/L2IOeTkQ19RhvQtilo9MFaQlxFjcpFgcw1Y+s68pSOC1zTRaCDOsntgWn99Rl7HkqLLP4+/c0mK1EdFkx6DUPzrM9o= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717594037; c=relaxed/simple; bh=XMJUHJ8f0QK2Z10hHKRYLcY6PUzuiq6tZVeuA+mF9vk=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=hfLY+R/mGUb/ndRdm3Qd6lBqzLjJInH5WwsV2gY55X/FYd0JAkM0dIPNoaYHB4gI8QErBQdMNnK/7SoxUfFoCTsp/WxQOMz9Cc45FMT0vU3cJvXrSsuM/vJq3rdi2Cl72xSxEc7tYcUtk3B9Frnph/awxTspSOx8pg5RMos70OE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717594034; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=l6KuyT6BP48hitSxzV1/3hFCq4uIm9qsztvs2kAFnis=; b=JufYc9ADCowQKzj6pvafn1mNXtHQNEwD7lkpRdfuEnQS3+sTcYvU9tTvL6opF4pyQ4XKgu yaqHlEFjU36xKc++Ao3E19ctgaMkrKyr7+AQDaZu8cTMSSxkzyBhXxefrEdxkwG9oQEnVw 9SS+qcDrV6F+MGdVrFDuzfmN3IBXjkk= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-75-gMRhobGAPNCJwaH12BbrVA-1; Wed, 05 Jun 2024 09:27:13 -0400 X-MC-Unique: gMRhobGAPNCJwaH12BbrVA-1 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-3580f213373so4614810f8f.3 for ; Wed, 05 Jun 2024 06:27:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717594029; x=1718198829; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l6KuyT6BP48hitSxzV1/3hFCq4uIm9qsztvs2kAFnis=; b=CqyQyFiwNBWB12s2IJaUgDUlotzWxIfTbcRIyZqxclz0pobJ1FB+7tEwAUfM4rBPbn zQqtp+mrtgz1cVt+tr/4B6CfKKB3qHPa+AcgQscNn6XnG1aKw3mtFHCwytTBVdA4YVaf 79Qs+RM7t1NxOE+efa5rXrV5xsq09FHrl4r6+jKq2g0tbsNFRdWoPkCEOwIP4/5NqYkI jI6a7dUgalqcdlOAFfm/aSOXW9GxZ9h8XgF/p1JXaFfb1ovL/HnkbloWbvdLiW6OYd5r 33FOrN+3gRR1v9wFLO04YZjIbpLknxexI/7PMNvpkQA5/p9BTNF52VaJnffUpLaFbk3j v2bA== X-Gm-Message-State: AOJu0YzU3fIxFuH/3c4fVmhgylla6c7d6OVrswN9MxtLbPYLWds1b7lk krTbykUbVfGPjI+O5tnFryJ4oNIVT8AIJM8LBSUEY88kqrncR2GaRMkrNTqfMazmTZKywjT37GI eDrtgsMvrCT96GJhiXhiR22UncgvSXmVkoYodmit978yx3AqY0XXOJD48XQIAtRGsnKYPC91UXT evTg2afantj3rvPIUjkxkHmEgqk2exsmQ8wmy7LjJ+YKo= X-Received: by 2002:a5d:63d1:0:b0:358:8e1:1c29 with SMTP id ffacd0b85a97d-35e8ef8e5d7mr1994474f8f.63.1717594028952; Wed, 05 Jun 2024 06:27:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFzWvRp69sTzQXcfaqq6FTuQTtBCPUP7iEZYxJu+JDFl4DdK4PInGcWYmdAmm2y90LOwzWyig== X-Received: by 2002:a5d:63d1:0:b0:358:8e1:1c29 with SMTP id ffacd0b85a97d-35e8ef8e5d7mr1994448f8f.63.1717594028360; Wed, 05 Jun 2024 06:27:08 -0700 (PDT) Received: from localhost ([31.111.84.186]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35dd064b684sm14770313f8f.100.2024.06.05.06.27.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 06:27:08 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCHv2 0/2] gdb/testsuite: remove can_spawn_for_attach_1 Date: Wed, 5 Jun 2024 14:27:02 +0100 Message-Id: X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: A recent patch got me wondering why we have can_spawn_for_attach_1 and can_spawn_for_attach. I think we probably shouldn't. This series moves the functionality from can_spawn_for_attach into gdb_do_cache (lib/cache.exp), removing the need for two can_spawn_for_attach* procs. Changes from V1: The old #1 patch was approved and has been merged. The Linaro CI revealed an issue with patch #2 in the old v1 series, so I've dropped this patch and reworked a later patch to remove the need for this change. Patch #3 from the old series is the new #1, and is unchanged. Patch #4 from the old series is the new #2, and is slightly changed from the v1 series. --- Andrew Burgess (2): gdb/testsuite: restructure gdb_data_cache (lib/cache.exp) gdb/testsuite: track if a caching proc calls gdb_exit or not gdb/testsuite/lib/cache.exp | 130 +++++++++++++++++++++++++++++++----- gdb/testsuite/lib/gdb.exp | 83 ++++++----------------- 2 files changed, 134 insertions(+), 79 deletions(-) base-commit: 2db414c36b4f030782c2c8a24c916c3033261af0 -- 2.25.4