* Cannot find bounds of current function
@ 2005-07-25 13:39 Buday Gergely
2005-07-25 13:58 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Buday Gergely @ 2005-07-25 13:39 UTC (permalink / raw)
To: gdb
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?
- Gergely
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Cannot find bounds of current function
2005-07-25 13:39 Cannot find bounds of current function Buday Gergely
@ 2005-07-25 13:58 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2005-07-25 13:58 UTC (permalink / raw)
To: Buday Gergely; +Cc: gdb
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-25 13:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-25 13:39 Cannot find bounds of current function Buday Gergely
2005-07-25 13:58 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).