This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: A patch for gdbserver/configure.in?
- To: "H . J . Lu" <hjl at valinux dot com>
- Subject: Re: A patch for gdbserver/configure.in?
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Mon, 14 Feb 2000 22:16:11 +1100
- CC: GDB <gdb at sourceware dot cygnus dot com>
- Organization: Cygnus Solutions
- References: <20000118100708.A7885@valinux.com>
"H . J . Lu" wrote:
>
> Can someone please tell me why per arch file is not used for
> xm.h, nm.h and tm.h? I don't think it is correct for Linux.
FYI,
I believe this patch was superseed by a recent change contributed by
J.T.
Andrew
>
> --
> H.J. Lu (hjl@gnu.org)
> --
> Tue Jan 18 09:54:38 2000 H.J. Lu <hjl@gnu.org>
>
> * gdbserver/configure.in: Use per arch file for xm.h, nm.h
> and tm.h.
>
> Index: configure.in
> ===================================================================
> RCS file: /work/cvs/gnu/gdb/gdb/gdbserver/configure.in,v
> retrieving revision 1.1.1.1
> diff -u -p -r1.1.1.1 configure.in
> --- configure.in 1999/09/09 00:38:39 1.1.1.1
> +++ configure.in 2000/01/18 17:48:58
> @@ -53,10 +53,10 @@ links=
> rm -f xm.h
> rm -f ser-hardwire.c
> if [ "${hostfile}" != "" ]; then
> - if [ -f ${srcdir}/../config/${hostfile} ]; then
> - files="${files} ../config/${hostfile}"
> - else
> + if [ -f ${srcdir}/../config/${gdb_host_cpu}/${hostfile} ]; then
> files="${files} ../config/${gdb_host_cpu}/${hostfile}"
> + else
> + files="${files} ../config/${hostfile}"
> fi
> links="${links} xm.h"
>
> @@ -65,19 +65,19 @@ if [ "${hostfile}" != "" ]; then
> fi
> rm -f tm.h
> if [ "${targetfile}" != "" ]; then
> - if [ -f ${srcdir}/../config/${targetfile} ]; then
> - files="${files} ../config/${targetfile}"
> - else
> + if [ -f ${srcdir}/../config/${gdb_target_cpu}/${targetfile} ]; then
> files="${files} ../config/${gdb_target_cpu}/${targetfile}"
> + else
> + files="${files} ../config/${targetfile}"
> fi
> links="${links} tm.h"
> fi
> rm -f nm.h
> if [ "${nativefile}" != "" ]; then
> - if [ -f ${srcdir}/../config/${nativefile} ]; then
> - files="${files} ../config/${nativefile}"
> - else
> + if [ -f ${srcdir}/../config/${gdb_host_cpu}/${nativefile} ]; then
> files="${files} ../config/${gdb_host_cpu}/${nativefile}"
> + else
> + files="${files} ../config/${nativefile}"
> fi
> links="${links} nm.h"
> # temporary scaffolding until all hosts have the host/target/native