This is the mail archive of the gdb@sourceware.cygnus.com 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]

A patch for gdbserver/configure.in?


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.

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

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