This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: gdbserver arm-linux support?
- To: gary37 at seed dot net dot tw
- Subject: Re: gdbserver arm-linux support?
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Tue, 06 Feb 2001 11:18:01 -0800
- CC: gdb-patches at sourceware dot cygnus dot com
- Organization: Red Hat
- References: <E14Pykg-00023g-00@fwm2.seed.net.tw>
gary37@seed.net.tw wrote:
>
> Hi all,
>
> I know this question has been asked before in this list
> but I got gdb 20001208 source and tried to apply the
> patches floating around here before. I can not successfully
> apply the patches into source tree. I tried to do it
> manually but found the source seems to be changed since.
> So, I fumbled the code a little and finally got the
> arm-linux gdbserver built ok.
>
> But, when I am on a x86 host run gdb and arm client runs
> gdbserver, the connection seems to be up, but while I
> simply want to run the debugged program at host, it told
> me "don't know how to run", and the client gdbserver shows
> "killing the inferior ..." and dies.
When you use "target remote", you do not say "run".
You say "continue". Just imagine that when you initially
connect, the process already exists and the PC is stopped
at the start address.
Try that, anyway, and see if it works. Something like:
(gdb) target remote foo
(gdb) break main
(gdb) continue
HTH,
Michael