From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id efVfDxqP8WqX7zgAWB0awg (envelope-from ) for ; Mon, 09 Nov 2026 04:15:06 -0500 Authentication-Results: simark.ca; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=ZPxxisbt; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 371F2378002; Mon, 09 Nov 2026 04:15:06 -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,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=unavailable 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 88A271E023 for ; Mon, 09 Nov 2026 04:15:05 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B5DD24BCA400 for ; Mon, 9 Nov 2026 09:15:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B5DD24BCA400 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=ZPxxisbt Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by sourceware.org (Postfix) with ESMTPS id BE9A04BCA2CC for ; Mon, 9 Nov 2026 09:14:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BE9A04BCA2CC Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BE9A04BCA2CC Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::334 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794215680; cv=none; b=in6ZOu1dqNd5RQV2IsDgSrOWXrCGysMT9+Z9y9USo7eNMbJRy0rUTS7IWrwL2KRxBLSxaSCLneivIrQNpfdMd+gv5PP5fre5fZqyiuHSXDB5NNNt+mWeCXbkWDoBybIuSDgEEzNNoXVAbgg6mot4GAweojdwDrLO9I6udMXLrbU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794215680; c=relaxed/simple; bh=pZVyWEoPW6ytH9Y915bnvVbfyhzvtc4NEr6bWCpuhQM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=kmIlLhACC1wE+pwaob4N361oJWFfhzVNrijVxwckRXpj4Kf3h+b44KfbqxG0YV8xBFi1idAlC9GWcZSnZEHe6/tLp6j0TTCFwL5Wy/VCWhB6C+UFEMpQ8ki8V5vAf1whPGIloHHJ4G/1m0/CJmksajozKb0U79FrxGcaOkQI4eU= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=ZPxxisbt DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE9A04BCA2CC Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4b4571ff080so7441275e9.1 for ; Mon, 09 Nov 2026 01:14:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1794215679; x=1794820479; darn=sourceware.org; h=content-transfer-encoding:content-type:mime-version:user-agent :message-id:date:references:in-reply-to:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to:content-type; bh=gI6SMs7b9zIJgUgFU+bmWzVeBOkaLsDFFUTpEtL9rXw=; b=ZPxxisbtu+HN4ugGcvCt4eZXKH7ag3y3Htmtk70aWA5LBLxcydi4SUMwF0zIM0DCXz dVI9WWyNFI0dqz+dl75jsvrN4VLrmiNnnHgmoq6x7H0ajfFYCoYBJqvd9M5D3LvBN8Oa bDnALM+L4eJeqDGD03nhIg4bcg6creWBI2fd9Foa34+rF0tIGt2JvhRmkBXcgaNOtKwn bCrKLYtkeIOo5IL5DhgqHZa+tLNSUYEyrv3fOg/o6CeffscnQ3pp+1Wh0LY5yTJsqstr I8/nhRb0TXTIcmiaQQisOl5h3E/IfxtH+EHFAWA8V7/mNAvNE64iNgSk2m/qV+aQJYFf QHxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794215679; x=1794820479; h=content-transfer-encoding:content-type:mime-version:user-agent :message-id:date:references:in-reply-to:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=gI6SMs7b9zIJgUgFU+bmWzVeBOkaLsDFFUTpEtL9rXw=; b=YygTbCt60aQlbuJb3vioaL6o6Cjvr1eAl4o+woVfNpYjw6iknHezaDbrKNLzJorw5J psMuscSBDqcnA22g6I37rMIVjBnvIv5kqdL9SHQ18lcx42SNqMaImqn56Ic1wRwxgJQp JWXlFylXDXXTs6YB5FzR332yBk/qbsHtq2wQR+rVLK7gK+rclvrNCi80LQnjop6k7p6o owdRhUlRwciiM2BWB/TqQF7Dkr+Ep716Q/jghuzhuJva/+x81EZ/546cHkbBgXpfqQyZ 5URSmXMhoT8AWMgq4hmzi0dcpQdZgTZDtdtRYzA4uLBK7UZTMh+7Lp418ThSVN9GpKrx 60Ig== X-Gm-Message-State: APuU4Z+/OwqC2NhnVCA53B5yRMjmx/KWX3GCaUQ0Y7GtJ+k3qRB7KNLK eCxWBSyYUdkNunxp6epkJavzLmssieQbFQ1SU8RWeRghl2wypXaI+ZpkJ37hmue6VbOuCFoYi7l LJON7Zg== X-Gm-Gg: AYBFou0sX0btZv/5mGjLeXHkFORVl+H9e9pf/8Rxp9z0dA/E75h/WN3DdIkJJYZecH7 +TeR39ON0DDBK0I6ksOKswPPZViHc21KCOjZrXrFr90e2NhbPJMDzPC6cag9i9K0TSMJZaAWHNV 9gpF9ZjSCZot7d2ZjsD1hzTJYzNMEcrlMmmGljKPoPo1tKAK3wm4V0Gptre0TZHsp54KZVXcTaF L+mjP7RSFOl6JBmMi/Lyc4FFHZ0gXIKia58fcvbE7VF8MCocrcy3RQKwpGSRMhE6NhK0VrqiItY c0vIC64LMz1eddJ+P9YsjOZR1fOe4hg0Egv2krBPVMutCz6ddMF/L065w58NHCjtrr9aMufy97c a0KWfxE1aCy1cqTIgkNpRBU+iSRsUV9s1OGfjK7PihbhuR4Aq1IFAcl+hycMSMDYl0Igw0NPYfM o6yGSPwZM9JpQ2r/RODKGTUhbENhTW9lOGm0NrKFJn1zYvp2NuP54hR1uITs/lunTswVP+IsMNX 1jtirSTdvNKr6prruVe4QNoa1dcAeRp8g6thpLdFJflmYGoizZJZ2nJAVp1u4cxnvgf4EAJ9lJS /LGoMC4xMWUuSCBoTsJoKcLVJHSwTQFrYTUKrOwfNkLnaxwpfiNoqTs3mqgMys4= X-Received: by 2002:a05:600c:8b58:b0:4a1:fe26:24f0 with SMTP id 5b1f17b1804b1-4b963c6bbb5mr52838135e9.20.1794215678589; Mon, 09 Nov 2026 01:14:38 -0800 (PST) Received: from legouguec-Precision-7550 ([2.57.72.67]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4b7e32b46a3sm233620405e9.6.2026.11.09.01.14.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2026 01:14:38 -0800 (PST) From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= To: Simon Marchi Cc: gdb-patches@sourceware.org Subject: Re: [PATCH v3 1/2] gdb: Introduce ada-tasks.h for functions defined in ada-tasks.c In-Reply-To: References: <20230127165337.1832937-1-legouguec@adacore.com> <7561007673151647213c12316b34961b5ee9f657.1793983731.git.legouguec@adacore.com> Date: Mon, 09 Nov 2026 10:14:37 +0100 Message-ID: <87bj7ys6wy.fsf@adacore.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 Simon Marchi writes: > On 11/6/26 11:51 AM, K=C3=A9vin Le Gouguec wrote: >> Also move the documentation for these functions to the new header, inste= ad >> of at the top of their definition, to align with our current practice. >>=20 >> I tried to honor our guideline that .c files should not rely on indirect >> inclusion, hence I only removed #include "ada-lang.h" directives in .c f= iles >> that, as far as I could tell, only rely on symbols declared in ada-tasks= .h. > > Tom can perhaps more formally approve, but I like this patch. (Thanks for taking a look!) > I check that by opening the file in my VSCode+clangd, if there is any > error reported it means something is missing. Thanks for mentioning; decided to give clangd a try and after some .clangd fiddling=C2=B9, I do get a warning-free ada-tasks.h with your amendments. I'm curious whether & how you configure it tho, since I get more spurious-looking diagnoses if I venture into other files=C2=B2; I'm assuming I'm missing more compilation flags, and wondering how best to get an "authoritative" list & keep it up-to-date. (Searched gdb-patches because I'm sure you've mentioned your clangd setup before, but could not find my answers) (FWIW, I think that's the first language server I try with Eglot that defaults to enabling inlay hints & semantic tokens. Thanks for the hearty fruit salad =F0=9F=98=80) =C2=B9 Current state of affairs: If: PathMatch: gdb.*/.*.[ch] CompileFlags: Add: - -I/ABSOLUTE/PATH/TO/binutils-gdb/include - -I/ABSOLUTE/PATH/TO/binutils-gdb/gdb - -I/ABSOLUTE/PATH/TO/binutils-gdb/gnulib/import - -I/ABSOLUTE/PATH/TO/binutils-gdb - -I/ABSOLUTE/PATH/TO/binutils-gdb/bfd - -include - /ABSOLUTE/PATH/TO/binutils-gdb/gdbsupport/common-defs.h Curious if the file can be kept "relocatable", i.e. free of absolute paths. From the doc & open GH issues, unsure whether compilation commands are relative to the project root, or if some placeholder exists that will be expanded to the project root. =C2=B2 E.g. all members of gdb/ada-tasks.c:struct ada_tasks_pspace_data are flagged with > clang [expected_semi_decl_list]: Expected ';' at end of declaration list