Remote Debugging
Daniel Jacobowitz
drow@mvista.com
Thu Dec 12 10:30:00 GMT 2002
On Thu, Dec 12, 2002 at 09:29:56AM -0800, Tim wrote:
> I running gdb 5.2-2 and gdbserver. Remotely I'm running kernel 2.4-19.
> I compiled gdbserver against uClibc. My app is statically compiled
> against glibc 6.
>
> My remote device is an x86 board.
>
> My app is compiled with -ggdb and is not stripped on either the remote
> or the host.
>
> I start gdbserver 192.168.0.1:2345 myapp -options on the remote device.
> I start gdb on the host and give it the command target remote
> 192.168.0.2:2345
>
> the remote device shows a connection from my host.
>
> then I give it the command load myapp.
Try skipping this step. You should not use load with gdbserver.
> After all this I cannot view any source. The 'l' command returns the
> error 'no symbol table loaded' and instructs me to use file.
>
> What am I doing wrong?
Also be sure to give GDB the executable before connecting, i.e. "gdb
myapp".
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
More information about the Gdb
mailing list