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/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,

dnl ####
dnl # _GCC_TOPLEV_NONCANONICAL_TARGET
dnl # $target_alias or $host_noncanonical if blank.
dnl # Used when we would use $target_alias, but empty is not OK.
AC_DEFUN([_GCC_TOPLEV_NONCANONICAL_TARGET],
[AC_REQUIRE([_GCC_TOPLEV_NONCANONICAL_HOST]) []dnl
case ${target_alias} in
  "") target_noncanonical=${host_noncanonical} ;;
  *) target_noncanonical=${target_alias} ;;
esac
]) []dnl # _GCC_TOPLEV_NONCANONICAL_TARGET

and macro ACX_NONCANONICAL_TARGET is invoked in configure.ac.

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).

--
Yao (éå)


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