This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: crosstool gdb6.6 from i686 to x86_64
That was it. Thanks; saved me from burning more time on this.
> -----Original Message-----
> From: Daniel Jacobowitz [mailto:drow@false.org]
> Sent: Monday, April 02, 2007 6:23 PM
> To: Sri Dharmasanam (sdharmas)
> Cc: Michael Snyder; gdb@sourceware.org
> Subject: Re: crosstool gdb6.6 from i686 to x86_64
>
> On Mon, Apr 02, 2007 at 04:15:15PM -0700, Sri Dharmasanam
> (sdharmas) wrote:
> > Crosstool builds the cross-gdb client and the gdbserver
> together. In
> > this case, the host is a 32b machine and the target is 64b.
> >
> > The host:
> >
> > % x86_64-unknown-linux-gnu-gdb
> > GNU gdb 6.6
> > Copyright (C) 2006 Free Software Foundation, Inc.
> > GDB is free software, covered by the GNU General Public
> License, and
> > you are welcome to change it and/or distribute copies of it under
> > certain conditions.
> > Type "show copying" to see the conditions.
> > There is absolutely no warranty for GDB. Type "show warranty" for
> > details.
> > This GDB was configured as "--host=i686-pc-linux-gnu
> > --target=x86_64-unknown-linux-gnu".
> > (gdb) target remote target:12312
> > Remote debugging using target:12312
> > Remote register badly formatted:
> > T0506:0000000000000000;07:c0f4ffbf7f000000;10:806a55952a000000;
>
> Supply a file before you do this, and it will work. Without a file,
> x86_64 GDB defaults to i386.
>
> --
> Daniel Jacobowitz
> CodeSourcery
>