This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Remote Debugging


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]