Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: Simon Marchi <simark@simark.ca>, gdb-patches@sourceware.org
Subject: Re: [PATCH v2] [gdb] Remove unnecessary defs.h/common-defs.h includes
Date: Tue, 21 Apr 2026 23:28:38 +0200	[thread overview]
Message-ID: <cebca505-7468-4dcc-9b94-031477a19b6f@suse.de> (raw)
In-Reply-To: <d8ec106f-548e-49c8-8401-d176ca840828@simark.ca>

On 4/21/26 9:53 PM, Simon Marchi wrote:
> On 4/21/26 3:40 PM, Tom de Vries wrote:
>> I asked an AI to review a patch that added a new file, and it mentioned I
>> should add an include of defs.h as first include.
>>
>> That used to be true, but since commit 18d2988e5da ("gdb, gdbserver,
>> gdbsupport: remove includes of early headers") that's not the case anymore.
> 
> Btw, this is the kind of details that we could put in an AGENTS.md file
> (or similar), if it doesn't offend too many people.  AIs are much more
> efficient if they know the conventions of the project ahead of time.

I've opened a PR ( https://sourceware.org/bugzilla/show_bug.cgi?id=33951 
) about adding an AGENTS.md file, with a similar idea.

Kevin added a comment about how that may not necessarily work well.

Thanks,
- Tom

> Approved-By: Simon Marchi <simon.marchi@efficios.com>
> 
> Simon
> 


      reply	other threads:[~2026-04-21 21:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-21 19:40 Tom de Vries
2026-04-21 19:53 ` Simon Marchi
2026-04-21 21:28   ` Tom de Vries [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cebca505-7468-4dcc-9b94-031477a19b6f@suse.de \
    --to=tdevries@suse.de \
    --cc=gdb-patches@sourceware.org \
    --cc=simark@simark.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox