From: Simon Marchi <simon.marchi@efficios.com>
To: Pedro Alves <pedro@palves.net>, gdb-patches@sourceware.org
Subject: Re: [PATCH v2 4/4] gdb, gdbserver, gdbsupport: remove includes of early headers
Date: Tue, 26 Mar 2024 10:58:48 -0400 [thread overview]
Message-ID: <c9297700-7e61-4ddb-83f9-fdd8da25e6e1@efficios.com> (raw)
In-Reply-To: <0483600c-d703-400f-a341-f8b265fcbf18@palves.net>
On 3/26/24 7:59 AM, Pedro Alves wrote:
> On 2024-03-23 02:14, Simon Marchi wrote:
>> Now that defs.h, server.h and common-defs.h are included via the
>> `-include` option, it is no longer necessary for source files to include
>> it. Remove all the inclusions of these files I could find. Update the
>> generation scripts where relevant.
>>
>
> I didn't try to apply the patch locally to confirm, but (given the previous patch) AFAICS
> this leaves behind at least the common-defs.h include in gdbreplay.cc, right? Any others left behind?
In this v2, it's true that this include in gdbreplay.cc was left behind.
In the subsequent version of the series, I think it should either become
`-include common-defs.h` or `-include server.h`. I think that was the
only one.
> For any that need to be kept in place, it would be nice to see them called out in the commit log,
> and to add a comment above the left-behind #include explaining why it exists.
I don't think it will be needed to leave any #include behind.
Simon
prev parent reply other threads:[~2024-03-26 14:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-23 2:14 [PATCH v2 0/4] Include early include files with `-include` Simon Marchi
2024-03-23 2:14 ` [PATCH v2 1/4] gdb, gdbserver, gdbsupport: reformat some Makefile variables, one entry per line Simon Marchi
2024-03-23 2:14 ` [PATCH v2 2/4] {gdb, gdbserver}/Makefile.in: remove unnecessary intermediary variables Simon Marchi
2024-03-23 2:14 ` [PATCH v2 3/4] gdb, gdbserver, gdbsupport: include early header files with `-include` Simon Marchi
2024-03-26 11:57 ` Pedro Alves
2024-03-26 14:39 ` Simon Marchi
2024-03-26 15:31 ` Pedro Alves
2024-03-26 15:49 ` Simon Marchi
2024-03-23 2:14 ` [PATCH v2 4/4] gdb, gdbserver, gdbsupport: remove includes of early headers Simon Marchi
2024-03-26 11:59 ` Pedro Alves
2024-03-26 14:58 ` Simon Marchi [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=c9297700-7e61-4ddb-83f9-fdd8da25e6e1@efficios.com \
--to=simon.marchi@efficios.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@palves.net \
/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