This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v3] gdbserver: fix the standalone build
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: Pedro Alves <palves at redhat dot com>, Mircea Gherzan <mircea dot gherzan at intel dot com>, tromey at redhat dot com, gdb-patches at sourceware dot org
- Date: Mon, 01 Jul 2013 16:38:59 +0100
- Subject: Re: [PATCH v3] gdbserver: fix the standalone build
- References: <1372420771-942-1-git-send-email-mircea dot gherzan at intel dot com> <51CD7ED4 dot 6070104 at codesourcery dot com> <51CD8023 dot 3030308 at redhat dot com> <51CE4252 dot 7050305 at codesourcery dot com>
On 06/29/2013 03:11 AM, Yao Qi wrote:
> On 06/28/2013 08:22 PM, Pedro Alves wrote:
>> Doesn't GDB, and whatever other users of create-version.h, need the
>> same treatment first?
>
> In GDB, the 'target_alias' and 'host_alias' can't be empty, and
> create-version.sh only has two users, GDB and GDBserver.
>
> GDB is configured from the top level. On the top level, the FOO_alias
> is set to @FOO_noncanonical@ (in Makefile.tpl). The
> 'target_noncanonical' is similar to 'version_target' we computed in
> gdbserver/configure.ac. See config/acx.m4,
...
> and macro ACX_NONCANONICAL_TARGET is invoked in configure.ac.
Hmm, gdb/testsuite/configure.ac is also using that, added here:
http://www.sourceware.org/ml/gdb-patches/2006-06/msg00330.html
Sounds like we should be making gdbserver use that too, instead
of reinventing our own...
>
> the gdb/configure is invoked by passing "--build=${build_alias}
> --host=${host_alias} --target=${target_alias}" from the top level (see
> rule configure-gdb in Makefile.in).
--
Pedro Alves