This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb-gdbserver running 32-bit application on 64-bit target
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb at sourceware dot org
- Cc: Carlos Munoz <cmunoz at redback dot com>
- Date: Fri, 17 Apr 2009 14:12:11 +0100
- Subject: Re: gdb-gdbserver running 32-bit application on 64-bit target
- References: <49E52A05.9070709@redback.com>
On Wednesday 15 April 2009 01:27:49, Carlos Munoz wrote:
> I'm running gdbserver on a target board running x86-64 Linux. However,
> the application I need to debug happens to be a statically linked 32-bit
> executable.
This is not possible currently, the x86/x86-64 ports of gdbserver
don't have bi-arch support yet. You'll need a 32-bit x86 gdbserver
to debug 32-bit x86 executables.
> When I try to connect from gdb running on the host to the
> target I get the following error:
>
> (gdb) target remote 10.12.7.99:5432
> Remote debugging using 10.12.7.99:5432
> warning: Selected architecture i386 is not compatible with reported
> target architecture i386:x86-64
> Remote register badly formatted:
> T0506:0000000000000000;07:b0e799ff00000000;10:0081040800000000;thread:afc;
> here: 0000000;07:b0e799ff00000000;10:0081040800000000;thread:afc;
>
> Is this something that can easily be done or do I need to change the
> code to add support for it ?
--
Pedro Alves