From: Pedro Alves <palves@redhat.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH v2 1/6] introduce common.m4
Date: Fri, 08 Nov 2013 12:46:00 -0000 [thread overview]
Message-ID: <527CD8BB.3000103@redhat.com> (raw)
In-Reply-To: <87zjpipqx9.fsf@fleche.redhat.com>
On 11/05/2013 07:52 PM, Tom Tromey wrote:
>>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
>
> Pedro> HAVE_LANGINFO_CODESET is used by common/gdb_locale.h,
> Pedro> and GDB_AC_COMMON uses AM_LANGINFO_CODESET. Shouldn't
> Pedro> codeset.m4 then be included by common.m4 instead?
>
> It's also needed by gdb/charset.c, so technically it should be included
> in both places. However it seems strange to include the file twice, and
> reasonably harmless the way it is.
Hmm, but then this goes against the "each module includes what
it needs" philosophy. Does including the file twice actually result
in expanding the file twice, or does m4 make sure it's included
only once?
If we do go with gdbserver including this directly, then I think
it'd be good to add a comment about the dependency here:
> +++ b/gdb/gdbserver/acinclude.m4
> @@ -12,8 +12,10 @@ sinclude(../../config/override.m4)
> dnl For ACX_PKGVERSION and ACX_BUGURL.
> sinclude(../../config/acx.m4)
>
> +m4_include(../../config/codeset.m4)
> m4_include(../../config/depstand.m4)
> m4_include(../../config/lead-dot.m4)
> +m4_include(../common/common.m4)
Thanks,
--
Pedro Alves
next prev parent reply other threads:[~2013-11-08 12:27 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-05 18:23 [PATCH v2 0/6] " Tom Tromey
2013-11-05 18:23 ` [PATCH v2 2/6] remove link.h checks Tom Tromey
2013-11-05 19:10 ` Pedro Alves
2013-11-05 18:24 ` [PATCH v2 1/6] introduce common.m4 Tom Tromey
2013-11-05 19:09 ` Pedro Alves
2013-11-05 20:03 ` Tom Tromey
2013-11-08 12:46 ` Pedro Alves [this message]
2013-11-08 19:32 ` Tom Tromey
2013-11-08 20:10 ` Tom Tromey
2013-11-05 18:25 ` [PATCH v2 4/6] gdb configure updates Tom Tromey
2013-11-05 19:10 ` Pedro Alves
2013-11-05 19:09 ` [PATCH v2 3/6] use gdb_string.h in m32c-tdep.c Tom Tromey
2013-11-05 19:49 ` Pedro Alves
2013-11-05 19:10 ` [PATCH v2 0/6] introduce common.m4 Pedro Alves
2013-11-05 20:04 ` [PATCH v2 5/6] fix a comment in configure.ac Tom Tromey
2013-11-05 21:10 ` [PATCH v2 6/6] remove unused gdbserver configury Tom Tromey
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=527CD8BB.3000103@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=tromey@redhat.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