This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Problem building GDB on Power64
- From: Daniel Jacobowitz <drow at false dot org>
- To: Paul Gilliam <pgilliam at us dot ibm dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 2 Sep 2004 13:21:58 -0400
- Subject: Re: Problem building GDB on Power64
- References: <200409020920.53975.pgilliam@us.ibm.com>
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