Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch/rfc] Don't assume the host
@ 2002-01-15 20:44 Andrew Cagney
  2002-01-18 13:56 ` Andrew Cagney
  0 siblings, 1 reply; 8+ messages in thread
From: Andrew Cagney @ 2002-01-15 20:44 UTC (permalink / raw)
  To: gdb-patches; +Cc: mrg

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

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

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 1255 bytes --]

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"
  

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-01-20 18:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-15 20:44 [patch/rfc] Don't assume the host Andrew Cagney
2002-01-18 13:56 ` Andrew Cagney
2002-01-20  0:29   ` Eli Zaretskii
2002-01-20  9:13     ` Andrew Cagney
2002-01-20 10:21       ` Andrew Cagney
2002-01-20 10:25       ` Eli Zaretskii
2002-01-20 10:38         ` Andrew Cagney
2002-01-20 10:55           ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox