Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: Pedro Alves <pedro@palves.net>,
	Simon Marchi <simon.marchi@efficios.com>,
	 gdb-patches@sourceware.org
Subject: Re: [PATCH v2 3/4] gdb, gdbserver, gdbsupport: include early header files with `-include`
Date: Tue, 26 Mar 2024 11:49:44 -0400	[thread overview]
Message-ID: <cec90c4a-48ec-4614-97fc-064365c06dc4@simark.ca> (raw)
In-Reply-To: <80ffa3c0-7049-4b11-8c28-1a6b6ac5c0d7@palves.net>

On 3/26/24 11:31 AM, Pedro Alves wrote:
> You said a lot of different things, so I'm not sure which part I'd be agreeing with.  :-)

Sorry about that.

> gdbreplay is a separate program that happens share a few bits of code with gdbserver, but
> not that much.  It currently includes common-defs.h at the top of its source file.
> So I think the really simplest is to make the rule for gdbreplay.o you were
> adding use "-include common-defs.h".  Or add a new gdbreplay.h header that includes
> common-defs.h and -include that one.
> 
> Anything else than that seems like a distraction at this point, and I wouldn't call those
> other options simpler.  The look certainly more debatable to me.

Ok, I'll keep the special rule for gdbreplay.o and make it -include
common-defs.h.

It's a bit weird because gdbreplay is made of gdbreplay.o, utils.o and
version.o.  The former includes common-defs.h, while the last two
include server.h.  But it works like that today, and I don't need to
change it.

Simon

  reply	other threads:[~2024-03-26 15:50 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 " 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 [this message]
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

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=cec90c4a-48ec-4614-97fc-064365c06dc4@simark.ca \
    --to=simark@simark.ca \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@palves.net \
    --cc=simon.marchi@efficios.com \
    /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