EmbDev.net

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


Author: dose (Guest)
Posted on:

Rate this post
0 useful
not useful
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

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]
  • [avrasm]AVR assembler code[/avrasm]
  • [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.