How to configure a cross gdb to debug natively

H . J . Lu hjl@lucon.org
Fri Jul 13 13:23:00 GMT 2001


I'd like to configure gdb inside a tree with binutils, gcc and gdb
on Linux/i686 with

# ../configure --target=i386-linux ....

I do that on purpose so that gcc and binutils won't use any files
on the host machine. But gdb refuses to debug natively on Linux/i686
since it is configured as a cross gdb, However, Linux/i686 is
compatible with i386-linux, how can I convince gdb to debug natively?

Thanks.


H.J.



More information about the Gdb mailing list