This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: howto build gdb / gdbserver for x86 host with arm-linux target?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Tim Harvey <tim_harvey at yahoo dot com>
- Cc: Anil Gunturu <anil_gunturu at yahoo dot com>, gdb at sources dot redhat dot com
- Date: Thu, 10 Feb 2005 23:28:09 -0500
- Subject: Re: howto build gdb / gdbserver for x86 host with arm-linux target?
- References: <20050211024733.30134.qmail@web30706.mail.mud.yahoo.com> <20050211040403.71623.qmail@web30510.mail.mud.yahoo.com>
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