GDBSERVER for 2440 where to find and how to configure

David
Hello
i think this topic will be interesting for a lot "embedded linux pioneers".
Finally I set my tool-chine  with code-blocks IDE on Kubuntu using
arm-linux-gcc 4.3.2. Programs can be develop,compile and run on target.
Great! What about debugging ? i hear that there is some program like
gdbserver, which should be installed on targetm,set IP and open port and
after that to run gdm on host with same port.

1. I cannot find gdbserver on linux instalation on target ?
2. If this can be download from web can somebody give sequence to set up
for s3c2440 board?
3. simple exam how to run with host ?

Thank you in advance !

Juergen Beisert
run your app with gdbserver on your target

$ gdbserver :1234 /path/to/my/app

And at your host:

$ <your/cross/toolchain>-gdb
</your/rootfs/copy/with/debug/symbols>/path/to/my/app

And then, when GDB is running on your host, tell him, where to search for
other debugsymbols:

(gdb) set solib-absolute-prefix </your/rootfs/copy/with/debug/symbols>
(gdb) target remote <your.target.ip.address>:1234
(gdb) break main
(gdb) continue

Note: running gdbserver on your target does not need the debugsymbols in
the binaries. Only the GDB at your host needs these info and so needs
access to all the corresponding binaries with debug symbols.
For example our PTXdist creates a 'root/' and a 'root-debug/' directory
with all binaries the target needs.  'root/' can be used by the target,
'root-debug/' contains the same binaries but with still debug symbols
available (not 'stripped'). So the local GDB uses 'root-debug/' to be able
to read all corresponding debug symbols.

David
Thank you Juergen,
it's works !
But i tried to find in code::blocks Ide - IP of target board and attach the
process using PID. If you know how ??

sai ganesh
I am getting PID but how to use that i am not understanding, At the same
time please kindly explain with example for below lines if possible  
 
$ <your/cross/toolchain>-gdb
</your/rootfs/copy/with/debug/symbols>/path/to/my/app

(gdb) set solib-absolute-prefix </your/rootfs/copy/with/debug/symbols>