I have some problem on gdbserver
莉娟 刘
lljforever@yahoo.com.cn
Fri Aug 15 00:19:00 GMT 2003
--- Daniel Jacobowitz <drow@mvista.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.
>
>
Thank you very much.It is true,I run the cross-gdb
and gdbsever on the same host,but they cannot run on
the same host in the remote way?Does gdb support
communicating with target in TCP way on the same host?
(I know cross gdb can debug programs in "target sim"
way on the same host machine.)
If I make gdbserver run on the target,must the
target be the machine with arm cpu ,or can it be cross
environment?
regards!
_________________________________________________________
Do You Yahoo!?
ÃîÃôóìÃë¾ÃÃÃ
Ȣè ÃøÃçÃãÃñ÷+ÃÃ
Ȣèµ÷õÃÃÃô»úµÃÃãôÃÃ
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.promo.yahoo.com/minisite/messenger1/
More information about the Gdb
mailing list