gdb-gdbserver running 32-bit application on 64-bit target
Pedro Alves
pedro@codesourcery.com
Fri Apr 17 16:19:00 GMT 2009
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
More information about the Gdb
mailing list