Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Cai Qian" <caiqian@gmail.com>
To: "Cai Qian" <caiqian@gmail.com>, gdb@sourceware.org
Subject: Re: gdbserver with X86_64
Date: Fri, 01 Sep 2006 13:31:00 -0000	[thread overview]
Message-ID: <a96350810609010631o49fc6455r4c80eaae18db46da@mail.gmail.com> (raw)
In-Reply-To: <20060901125144.GA7378@nevyn.them.org>

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.

> --
> Daniel Jacobowitz
> CodeSourcery
>


  reply	other threads:[~2006-09-01 13:31 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 [this message]
2006-09-01 14:13     ` Daniel Jacobowitz
2006-09-01 14:27       ` Andrew STUBBS
2006-09-01 21:01     ` Michael Snyder

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=a96350810609010631o49fc6455r4c80eaae18db46da@mail.gmail.com \
    --to=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