From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18852 invoked by alias); 24 Jan 2002 02:20:36 -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 18761 invoked from network); 24 Jan 2002 02:20:30 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (12.107.208.154) by sources.redhat.com with SMTP; 24 Jan 2002 02:20:30 -0000 Received: from free.redhat.lsd.ic.unicamp.br (dhcpd168.meridian.redhat.com [172.16.47.168]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g0O2KR322196; Wed, 23 Jan 2002 21:20:27 -0500 Received: (from aoliva@localhost) by free.redhat.lsd.ic.unicamp.br (8.11.6/8.11.6) id g0O2KF622167; Thu, 24 Jan 2002 00:20:15 -0200 To: Brad Lucier Cc: jsturm@one-point.com, atpoquet@ucdavis.edu, gcc@gcc.gnu.org Cc: gdb-patches@sources.redhat.com Subject: Re: Help needed with sparc References: <200201232315.g0NNFw309706@banach.math.purdue.edu> From: Alexandre Oliva Organization: GCC Team, Red Hat Date: Wed, 23 Jan 2002 18:20:00 -0000 In-Reply-To: Brad Lucier's message of "Wed, 23 Jan 2002 18:15:58 -0500 (EST)" Message-ID: User-Agent: Gnus/5.0805 (Gnus v5.8.5) Emacs/20.7 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-SW-Source: 2002-01/txt/msg00705.txt.bz2 --=-=-= Content-length: 704 On Jan 23, 2002, Brad Lucier wrote: > Re: >> You must use a 64-bit gdb to debug 64-bit Solaris executables. > Which version of gdb? I got the following message when trying to > configure 5.1: > env CC='cc -xildoff -xarch=v9' ./configure sparcv9-sun-solaris2.8 > ... > checking for X... libraries /pkgs/XFree86-3.3.3.1/lib, headers /pkgs/XFree86-3.3.3.1/include > configure: error: *** Gdb does not support host sparcv9-sun-solaris2.8 gdb's configure recognizes sparc64-sun-solaris2.8, but not sparcv9-sun-solaris2.8. Here's a patch that I've had for a while that addresses this inconsistency in GDB WRT other packages. I'm not sure I've posted it before. Ok to install? --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=gdb-sparcv9.patch Content-length: 1401 Index: gdb/configure.host =================================================================== RCS file: /cvs/src/src/gdb/configure.host,v retrieving revision 1.23 diff -u -p -r1.23 configure.host --- gdb/configure.host 2001/07/10 20:41:54 1.23 +++ gdb/configure.host 2001/11/18 03:52:47 @@ -18,7 +18,7 @@ m68*) gdb_host_cpu=m68k ;; m88*) gdb_host_cpu=m88k ;; mips*) gdb_host_cpu=mips ;; powerpc*) gdb_host_cpu=powerpc ;; -sparc64) gdb_host_cpu=sparc ;; +sparcv9|sparc64) gdb_host_cpu=sparc ;; s390*) gdb_host_cpu=s390 ;; *) gdb_host_cpu=$host_cpu ;; @@ -154,6 +154,7 @@ sparc-*-sunos4*) gdb_host=sun4os4 ;; sparc-*-sunos5*) gdb_host=sun4sol2 ;; sparc-*-*) gdb_host=sun4os4 ;; sparc64-*-linux*) gdb_host=linux ;; +sparcv9-*-* | \ sparc64-*-*) gdb_host=sun4sol2 ;; strongarm-*-*) gdb_host=arm ;; Index: gdb/configure.tgt =================================================================== RCS file: /cvs/src/src/gdb/configure.tgt,v retrieving revision 1.35 diff -u -p -r1.35 configure.tgt --- gdb/configure.tgt 2001/08/12 03:39:11 1.35 +++ gdb/configure.tgt 2001/11/18 03:52:47 @@ -293,6 +293,7 @@ sparc86x-*-*) gdb_target=sparclite ;; # deleted though presumably it should be eventually. #sparc64-*-solaris2*) gdb_target=sp64sol2 ;; sparc64-*-linux*) gdb_target=sp64linux ;; +sparcv9-*-* | \ sparc64-*-*) gdb_target=sp64 ;; # OBSOLETE tic80-*-*) gdb_target=tic80 --=-=-= Content-length: 289 -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{cygnus.com, redhat.com} CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist *Please* write to mailing lists, not to me --=-=-=--