From: Michael Snyder <Michael.Snyder@palmsource.com>
To: Cai Qian <caiqian@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: gdbserver with X86_64
Date: Fri, 01 Sep 2006 21:01:00 -0000 [thread overview]
Message-ID: <1157144486.4466.83.camel@localhost.localdomain> (raw)
In-Reply-To: <a96350810609010631o49fc6455r4c80eaae18db46da@mail.gmail.com>
On Fri, 2006-09-01 at 14:31 +0100, Cai Qian wrote:
> Hi,
>
> On 9/1/06, Daniel Jacobowitz <drow@false.org> wrote:
> > On Fri, Sep 01, 2006 at 01:44:06PM +0100, Cai Qian wrote:
> > > 3) # Connect to gdbserver locally.
> > > gdb
> > > ...
> > > "This GDB was configured as x86_64-linux-gun"
> > > (gdb) target remote localhost:22222
> >
> > You need to give GDB a binary file before you connect. Otherwise,
> > it is defaulting to 32-bit registers.
> >
> > You should always do this, on every platform.
> >
>
> Oh, I see. Just realised
>
> set architecture i386:x86-64
>
> also work for me. However, it seems there is a problem with single step,
>
> (gdb) s
> Cannot find bounds of current function
>
> "si" do work though.
"Step" is a source-level command. It can't work without
line number symbols. Load up a symbol file before trying
to use "step".
Of course stepi (step by instruction) will most always work.
prev parent reply other threads:[~2006-09-01 21:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-01 12:44 Cai Qian
2006-09-01 12:51 ` Daniel Jacobowitz
2006-09-01 13:31 ` Cai Qian
2006-09-01 14:13 ` Daniel Jacobowitz
2006-09-01 14:27 ` Andrew STUBBS
2006-09-01 21:01 ` Michael Snyder [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=1157144486.4466.83.camel@localhost.localdomain \
--to=michael.snyder@palmsource.com \
--cc=caiqian@gmail.com \
--cc=gdb@sourceware.org \
/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