remote debugging on embedded Linux

Guest #1381475
Hallo

I have an ARM9 Embedded Board This is connected via LAN to the host PC.

I start on the ARM board the gdbserver.

# gdbserver host:4444 ./ftpd
Process ./ftpd created; pid = 176
Listening on port 4444



On the host PC I start

arm-gdb ftpd
GNU gdb Red Hat Linux (6.7-2rh)
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show 
copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu 
--target=arm-linux".
The target architecture is set automatically (currently arm)
..
(gdb) target remote 192.168.30.11:4444
Remote debugging using 192.168.30.11:4444
0x400007c0 in ?? () from /opt/eldk/arm/lib/ld-linux.so.3
(gdb)

On the embedded board I got the output:
Remote debugging from host 192.168.30.254

The connection is established. That is nice.
But how are the correct commando for starting debug ?

On host pc

(gdb) step
Cannot access memory at address 0x0
Cannot find bounds of current function
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /home/red/iso/troll-ftpd/troll-ftpd-1.28/ftpd
Don't know how to run.  Try "help target".

On the embedded board I got:
Killing inferior

Reply

A question of your own? This thread is over 17 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.