From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta036.useast.a.cloudfilter.net (omta036.useast.a.cloudfilter.net [44.202.169.35]) by sourceware.org (Postfix) with ESMTPS id 9FFD53858413 for ; Fri, 23 Feb 2024 21:06:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9FFD53858413 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9FFD53858413 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708722408; cv=none; b=WtrDXZwDsft+zzfu2UjbYEaGZXanZs5GysSnmFdzIH0xuqnbEwQbZqNpBkxsvLPH+OAZ4UfHu6adwfAQD2oD5KUjA/sFKevZvQdoYsOesRtFk0ZfXchRVA1JUG7lvNOVXSySUVLJIwE3gqhwrvBfLQLYXqYdAWU3LW8eQSrp6Y0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708722408; c=relaxed/simple; bh=0qEeqj4dTWSgank5OMkR1eLdYzHo4XY42QIL/MgN9tM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=l73gsGBjJXiWglbtNrAI9oJLjn9b6Jjj7JfdSukRYDPhPThUklRMqSkSxvy4CzA9N16I3nkBLoXYgOSE9CPX4q9FGO5WRVglkQ+7L/AiT55uWUan4KlyRd5frklIPESvBKdxrW1H1fs6g2iD7wsjnwjeahKpfpRMw/qODwRHMT8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-5007a.ext.cloudfilter.net ([10.0.29.141]) by cmsmtp with ESMTPS id dYjCrHlHfuh6sdckorjGoZ; Fri, 23 Feb 2024 21:06:46 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id dcknrbWQByrSgdcknrcxOr; Fri, 23 Feb 2024 21:06:45 +0000 X-Authority-Analysis: v=2.4 cv=VODbncPX c=1 sm=1 tr=0 ts=65d908e5 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=k7vzHIieQBIA:10 a=Qbun_eYptAEA:10 a=iId4DlOaf_H_Mua7lLAA:9 a=zZCYzV9kfG8A:10 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=MgWISz1xA1+qzwBuElQ5ZNG2OsX9322HDXTas3newLQ=; b=t1MLHErckTkn5ejelzm/fDcKxi HpylRYL0+tHrSCh20dogiJtRlLhcGnfSsPfxbfrK7RXKE9NrXLGITUM4rf7J/hwBfpcK25cn1ezc2 WZ6dt0Zh35OUBKNKlGruf+U7n; Received: from 71-211-170-195.hlrn.qwest.net ([71.211.170.195]:42060 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1rdckn-001Ndh-0K; Fri, 23 Feb 2024 14:06:45 -0700 From: Tom Tromey To: Simon Marchi Cc: Tom Tromey , Simon Marchi via Gdb-patches Subject: Re: The defs.h / common-defs.h / server.h rule References: <2f2f552a-0028-49cc-adbe-ca038c1e9acd@polymtl.ca> <87zfvv2non.fsf@tromey.com> <88f15917-7989-4e47-a7cf-2cb62faad7ad@polymtl.ca> X-Attribution: Tom Date: Fri, 23 Feb 2024 14:06:44 -0700 In-Reply-To: <88f15917-7989-4e47-a7cf-2cb62faad7ad@polymtl.ca> (Simon Marchi's message of "Fri, 23 Feb 2024 15:35:30 -0500") Message-ID: <87bk86yjob.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 71.211.170.195 X-Source-L: No X-Exim-ID: 1rdckn-001Ndh-0K X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 71-211-170-195.hlrn.qwest.net (murgatroyd) [71.211.170.195]:42060 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfKw9eDXypFwtDsl7idGiRIm7C63fkgtENkiWKGy7xOhWpR6nhl4bdsFinthbt+vPAqzWgqzDCrk9OKib45G+z19tw8/8iSm5irsNle3h0tPlC9xmhwev KIvNDBJrJ6L1qVZOvy/F35PXlSw5TGzvpW1dM5X7QQ1MeAWl1Yx8k1l1f9aY0B3nUtYnTz7I0LFSK7mrfCO2VYGVztdrqSbxpUY= X-Spam-Status: No, score=-3016.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,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: Simon> I suppose the other classic way to do this is with an -include flag, Simon> passed to the compiler? I don't know if any projects do this, but traditionally it's not done by GNU-ish programs, I guess because -include was GCC-specific, i.e., not portable. Simon> defs.h & co pull in a ton of stuff that is not needed everywhere, so I Simon> think it would be nice to gradually remove some includes from them, and Simon> include things where they are really needed. This could help build Simon> times and avoid recompiling files unnecessarily. Yeah, that'd be great. gdb's header files are a crazy mess. Tom