Forum: ARM programming with GCC/GNU tools remote debugging on embedded Linux

von dose (Guest)

Rate this post
0 useful
not useful

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 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show 
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu 
The target architecture is set automatically (currently arm)
(gdb) target remote
Remote debugging using
0x400007c0 in ?? () from /opt/eldk/arm/lib/ld-linux.so.3

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

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


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.