This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Cannot find bounds of current function
- From: Daniel Jacobowitz <drow at false dot org>
- To: Buday Gergely <gergoe at math dot bme dot hu>
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 25 Jul 2005 09:58:49 -0400
- Subject: Re: Cannot find bounds of current function
- References: <Pine.LNX.4.60.0507251528150.1709@csusza.math.bme.hu>
On Mon, Jul 25, 2005 at 03:39:45PM +0200, Buday Gergely wrote:
> Hi,
>
> I'm to use remote debugging via gdbserver on my Ubuntu linux box.
>
> I've compiled my program with the -g gcc option. Then started
>
> $ gdbserver host:10000 a.out
>
> From the same machine I started gdb and told her
>
> (gdb) target remote localhost:10000
> Remote debugging using localhost:10000
> 0xb7febc20 in ?? ()
> (gdb) n
> Cannot find bounds of current function
>
> I've googled a bit and found that I should use add-symbol-file at the gdb
> client. I've used an object file with debug information to load (not sure
> about this one) but was totally inept to figure out what address should I
> give as a second argument. Do you have any hint where I can get a proper
> address from? Or, any advice how should I set up my remote debugging
> session?
No, don't mess with add-symbol-file. You aren't in a function: you're
at the executable's starting point. Try setting a breakpoint at main
and continuing.
--
Daniel Jacobowitz
CodeSourcery, LLC