From: Daniel Jacobowitz <drow@false.org>
To: Buday Gergely <gergoe@math.bme.hu>
Cc: gdb@sources.redhat.com
Subject: Re: Cannot find bounds of current function
Date: Mon, 25 Jul 2005 13:58:00 -0000 [thread overview]
Message-ID: <20050725135849.GA3918@nevyn.them.org> (raw)
In-Reply-To: <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
prev parent reply other threads:[~2005-07-25 13:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-25 13:39 Buday Gergely
2005-07-25 13:58 ` Daniel Jacobowitz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050725135849.GA3918@nevyn.them.org \
--to=drow@false.org \
--cc=gdb@sources.redhat.com \
--cc=gergoe@math.bme.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).