This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v3] gdbserver: fix the standalone build


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]