From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22647 invoked by alias); 2 Sep 2004 17:22:00 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 22638 invoked from network); 2 Sep 2004 17:21:58 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 2 Sep 2004 17:21:58 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1C2vHa-0003xX-Bf; Thu, 02 Sep 2004 13:21:58 -0400 Date: Thu, 02 Sep 2004 17:22:00 -0000 From: Daniel Jacobowitz To: Paul Gilliam Cc: gdb@sources.redhat.com Subject: Re: Problem building GDB on Power64 Message-ID: <20040902172158.GA15192@nevyn.them.org> Mail-Followup-To: Paul Gilliam , gdb@sources.redhat.com References: <200409020920.53975.pgilliam@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200409020920.53975.pgilliam@us.ibm.com> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-09/txt/msg00020.txt.bz2 On Thu, Sep 02, 2004 at 09:20:53AM -0700, Paul Gilliam wrote: > On a ppc64 system, GDB builds as a 32-bit application. This is OK if the > 64-bit dev. env. is not available. But if it is, this is wrong: GDB should > build as a 64-bit application so that both 64 and 32 bit apps can be > debugged. > > If I understood the configure process, I would have tried submitting a patch. > It should be easy: just include -m64 in the CFLAGS. And make sure to link > with the 64-bit libraries (which had better be there). IMO, if your 64-bit environment defaults to building 32-bit code, it's your responsibility to set -m64 yourself. -- Daniel Jacobowitz