This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: I have some problem on gdbserver
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: ???? ?? <lljforever at yahoo dot com dot cn>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 14 Aug 2003 11:16:40 -0400
- Subject: Re: I have some problem on gdbserver
- References: <20030814151333.52605.qmail@web15306.mail.bjs.yahoo.com>
On Thu, Aug 14, 2003 at 11:13:33PM +0800, ???? ?? wrote:
> Iwant to build cross-compile to my target, then I
> build
> gdbserver this way. for example:
> $ export CC=my-cross-compiler(arm-linu-gcc)
> $ path-to-gdbserver-sources/configure
> your-target-name(arm-linux)
> $ make
> But when I run gdbserver:
> $ arm-linux-gcc -g -o filename filename.c
> $ ./gdbserver host:1234 filename
> error:
> bash:./gdbserver:cannot execute binary file.
> Who can tell this is why?
It looks like you are running gdbserver on the host. It's supposed to
be run on the target.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer