Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: gdb-patches@sources.redhat.com
Cc: mrg@redhat.com
Subject: [patch/rfc] Don't assume the host
Date: Tue, 15 Jan 2002 20:44:00 -0000	[thread overview]
Message-ID: <3C45053B.9060900@cygnus.com> (raw)

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

             reply	other threads:[~2002-01-16  4:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-15 20:44 Andrew Cagney [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C45053B.9060900@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=mrg@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox