This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Remote Debugging
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Tim <Tim at deltacompsys dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 12 Dec 2002 13:30:26 -0500
- Subject: Re: Remote Debugging
- References: <1039714196.1418.20.camel@TIM.DCS>
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