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: Cannot find bounds of current function


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


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