This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/rfc] Don't assume the host
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: mrg at redhat dot com
- Date: Tue, 15 Jan 2002 23:44:43 -0500
- Subject: [patch/rfc] Don't assume the host
Hello,
The attached patch should fix a problem Matthew Green reported with GDB
insisting on needing to know the host.
It tweeks things to only insist on a *.mh file when a native configuration.
On potential problem - if there isn't a .mh file, it uses /dev/null.
Not sure how robust that is.
Andrew
2002-01-15 Andrew Cagney <ac131313@redhat.com>
* configure.in (host_makefile_frag): Only require a host makefile
fragment when a native build.
* configure: Re-generate.
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.78
diff -p -r1.78 configure.in
*** configure.in 2002/01/05 22:06:38 1.78
--- configure.in 2002/01/16 04:36:34
*************** AC_SUBST(target_subdir)
*** 1203,1209 ****
frags=
host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
if test ! -f ${host_makefile_frag}; then
! AC_MSG_ERROR("*** Gdb does not support host ${host}")
fi
frags="$frags $host_makefile_frag"
--- 1203,1216 ----
frags=
host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
if test ! -f ${host_makefile_frag}; then
! # When building a native debuger the .mh file containing things
! # like NATDEPFILES is needed. Cross debuggers don't need .mh
! # since it no longer contains anything useful.
! if test "${target}" = "${host}"; then
! AC_MSG_ERROR("*** Gdb does not support native host ${host}")
! else
! host_makefile_frag=/dev/null
! fi
fi
frags="$frags $host_makefile_frag"