Re: howto build gdb / gdbserver for x86 host with arm-linux target?

Daniel Jacobowitz
2005-02-11T04:28:20Z

On Thu, Feb 10, 2005 at 08:04:03PM -0800, Tim Harvey wrote:
>
> --- Anil Gunturu <anil_gunturu@yahoo.com> wrote:
>
> > You don't need symbols on the target when running gdbserver. So it's ok to
> > strip the symbols.
>
> right, I realize that the exe on the target can be stripped, but a non-stripped
> version will need to exist on the host and I assume it can't hurt to have the
> target version non stripped as well right?
>
> > You need to export the arm-gcc before running ./configure. For example:
> > export CC=${arm-compiler-path}/arm-gcc
> > configure --target=arm-linux.
> > -Anil
>
> Ah, so basically autoconf doesn't handle cross compiling and you always need to
> specify the compiler manually.

You're getting confused. Don't specify CC to build GDB. Do specify --target,
however. The error you got was from using an i386 targeted gdb with an
ARM stub.

Do specify --host and CC to build gdbserver, but it sounds like you
already have gdbserver.

--
Daniel Jacobowitz
CodeSourcery, LLC