gdb-gdbserver running 32-bit application on 64-bit target

Carlos Munoz cmunoz@redback.com
Wed Apr 15 07:06:00 GMT 2009


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. 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 ?

Thanks,
-Carlos



More information about the Gdb mailing list