From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id WcFtBeqwmWos+iUAWB0awg (envelope-from ) for ; Thu, 03 Sep 2026 13:39:54 -0400 Received: by simark.ca (Postfix, from userid 112) id 1281C1E166; Thu, 03 Sep 2026 13:39:54 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, 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 4E9681E033 for ; Thu, 03 Sep 2026 13:39:53 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E7B934BB1C1A for ; Thu, 3 Sep 2026 17:39:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E7B934BB1C1A Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 31FD34BA903E for ; Thu, 3 Sep 2026 17:38:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 31FD34BA903E Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=efficios.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=efficios.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 31FD34BA903E Authentication-Results: sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1788457137; cv=none; b=HajmHiC2akGiOK3yU6A3psPSUdOcW5136KNeqYjK0oepfmnyJQ0i/mcqMAJl1Z7YiMbIiKidUUxa6BCdnAzAI2/wSkYmfc4QIkjc+rv3d9pxcydYjnz6mPhPe5jVWSu88gP2aDFaladRoEuYyiYpF/uRc1l9LYGJEKYBl2PVxtk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1788457137; c=relaxed/simple; bh=0gW0pEASQhZX5Se1Rc1y+LsIyg1E2s4/nMxkDIlgLjg=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=BgawOYY7YN5K/4HQ80q1e+xO5eIBQxWPT3nlavUd0Hg+4l1NPYloyx0lPa1O5+1LE0KqHaF5tX1dlKmto09u0pL7Gtpu1kgm89oE7D/ebs/AohQNd7KCaxCVxHap8OWTouYA2aJvMwzZDdxesfRoML4Co8WM03b3v/LR+oSXdfs= ARC-Authentication-Results: i=1; sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 31FD34BA903E Received: by simark.ca (Postfix) id 08E471E167; Thu, 03 Sep 2026 13:38:56 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 3/4] gdb: gdb-gdb.gdb and gdb-gdb.py in distclean Date: Thu, 3 Sep 2026 13:37:04 -0400 Message-ID: <20260903173854.416876-4-simon.marchi@efficios.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260903173854.416876-1-simon.marchi@efficios.com> References: <20260903173854.416876-1-simon.marchi@efficios.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Both gdb-gdb.gdb and gdb-gdb.py are created by configure through AC_CONFIG_LINKS. When building in-tree, this does nothing. When building out-of-tree, AC_CONFIG_LINKS created a link or a copy. Either way, distclean should delete them but only when building out of tree. Change-Id: Iceca0a6b131c97028ecbc79650f451e83a2c5aed --- gdb/Makefile.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 6fd528c71c5f..f159a510dd6d 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -2423,7 +2423,9 @@ distclean: clean @$(MAKE) $(FLAGS_TO_PASS) DO=distclean "DODIRS=$(CLEANDIRS)" subdir_do rm -f nm.h config.status config.h stamp-h b jit-reader.h stamp-nmh rm -f gcore.in gstack.in gdb-add-index.in - rm -f gdb-gdb.gdb + if test "$(srcdir)" != "."; then \ + rm -f gdb-gdb.gdb gdb-gdb.py; \ + fi rm -f y.output yacc.acts yacc.tmp y.tab.h rm -f config.log config.cache rm -f config.lt libtool -- 2.55.0