-*- emacs-wiki -*-

** gdbserver **

This explains how to run gdbserver inside a UML so that you can attach
to it from outside the UML, using your favorite GDB front end (xemacs
mode,ddd,whatever). 

*** running a new program ***

<pre>
gdbserver /dev/ttyS0 eroute --clear
</pre>

<pre>
(gdb) target remote /dev/ttyp0
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
Remote debugging using /dev/ttyp0
0x400007b0 in ?? ()
(gdb) break main
Note: breakpoint 1 also set at pc 0x8049136.
Breakpoint 2 at 0x8049136: file /corp/projects/libreswan/v2.5.00/programs/eroute/eroute.c, line 153.
(gdb) c
Continuing.

Breakpoint 1, main (argc=2, argv=0xbf424d14)
    at /corp/projects/libreswan/v2.5.00/programs/eroute/eroute.c:153
(gdb) n
</pre>