This is the mail archive of the gdb-patches@sources.redhat.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]
Other format: [Raw text]

[COMMIT] Fix building cross debuggers


[Oops.  Hit C-C C-C too soon.]

Oops.  The shell code removed by this patch:

2004-09-27  Mark Kettenis  <kettenis@gnu.org>

	* configure.in: Don't comment out NATDEPFILES in the generated
	Makefile if NAT_FILE is unset.
	* configure: Regenerate.

wasn't dead after all.  It prevented linking in native-dependent code
when building a cross debugger on a systems that was supported as a
native target.  The bottom line is that building cross debuggers isn't
possible anymore, at least on i386-*-*.

Rather than reverting a few patches, I committed the attached patch.
I think this is the best thing to do with XM_FILE being almost gone.
The affected hosts are i386-pc-cygwin and i386-pc-msdosdjgpp.
Building a cross debugger on i386-pc-msdosdjgpp isn't supported, so
there it doesn't matter.  I'll try to get i386-pc-cygwin fixed ASAP.

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* configure.in: Only set host_makefile_frag when building a native
	debugger.
	* configure: Regenerate.
 
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.174
diff -u -p -r1.174 configure.in
--- configure.in 27 Sep 2004 18:41:24 -0000 1.174
+++ configure.in 28 Sep 2004 20:05:31 -0000
@@ -1422,22 +1422,19 @@ fi
 AC_SUBST(target_subdir)
 
 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 target ${host}")
-    else
-	host_makefile_frag=/dev/null
-    fi
+if test "${target}" = "${host}"; then
+  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 native target ${host}")
+  fi
+  frags="$frags $host_makefile_frag"
+else
+  host_makefile_frag=/dev/null
 fi
-frags="$frags $host_makefile_frag"
 
 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
 if test ! -f ${target_makefile_frag}; then
-AC_MSG_ERROR("*** Gdb does not support target ${target}")
+  AC_MSG_ERROR("*** Gdb does not support target ${target}")
 fi
 frags="$frags $target_makefile_frag"
 


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