Can't get cross debugging to work

Pedro Alves palves@redhat.com
Tue Mar 13 19:57:00 GMT 2012


On 03/13/2012 07:47 PM, Marc Khouzam wrote:

> Run:
>> > ./gdb/gdbserver/gdbserver :9999 ~/myBin.64


> Run:
>> > ./gdb/gdb ~/myBin.32


Here's the problem.  You should be doing:

./gdb/gdb ~/myBin.64

> warning: Selected architecture i386 is not compatible with reported target architecture i386:x86-64
> warning: Architecture rejected target-supplied description

This means that GDB thinks the architecture is i386 (because you've gave it a 32-bit
executable to debug), while gdbserver claims it is debugging a x86-64 program.

-- 
Pedro Alves



More information about the Gdb mailing list