From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 780 invoked by alias); 16 Jan 2002 04:44:57 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 742 invoked from network); 16 Jan 2002 04:44:54 -0000 Received: from unknown (HELO localhost.cygnus.com) (24.114.42.213) by sources.redhat.com with SMTP; 16 Jan 2002 04:44:54 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id D86243D47; Tue, 15 Jan 2002 23:44:43 -0500 (EST) Message-ID: <3C45053B.9060900@cygnus.com> Date: Tue, 15 Jan 2002 20:44:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.7) Gecko/20020103 X-Accept-Language: en-us MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Cc: mrg@redhat.com Subject: [patch/rfc] Don't assume the host Content-Type: multipart/mixed; boundary="------------070209080108090609040708" X-SW-Source: 2002-01/txt/msg00441.txt.bz2 This is a multi-part message in MIME format. --------------070209080108090609040708 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 305 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 --------------070209080108090609040708 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 1255 2002-01-15 Andrew Cagney * 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" --------------070209080108090609040708--