Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <Michael.Snyder@access-company.com>
To: "Sri Dharmasanam (sdharmas)" <sdharmas@cisco.com>
Cc: gdb@sourceware.org
Subject: Re: crosstool gdb6.6 from i686 to x86_64
Date: Mon, 02 Apr 2007 22:26:00 -0000	[thread overview]
Message-ID: <1175552753.9195.30.camel@svmsnyderlnx.palmsource.com> (raw)
In-Reply-To: <0D48315C0192E64BA0767F616E5A3B6601CF9425@xmb-sjc-236.amer.cisco.com>

On Mon, 2007-04-02 at 15:04 -0700, Sri Dharmasanam (sdharmas) wrote:
> I'm seeing this problem with gdb6.6 built using crosstool 0.43
>  
> host is a typical linux i686 system and the target is x86_64 smp linux
> 2.6.10.
>  
> The compiler version is 4.1.1 and binutils 2.16.
>  
> on the target, when I try remote debug:
>  
> %target% (gdb) target remote tcp:target_ipaddr:12312
> Remote debugging using tcp:target_ipaddr:12312
> Remote register badly formatted:
> T0506:b0f3ffbf7f000000;07:f0f2ffbf7f000000;10:358170962a000000;
> here: f000000;07:f0f2ffbf7f000000;10:358170962a000000;
> 
>  
> on the host, I get:
> ./gdbserver hostipaddr:12312 --attach 2826
> Attached; pid = 2826
> Listening on port 12312
> Remote debugging from host ipaddr
> readchar: Got EOF
> Remote side has terminated connection.  GDBserver will reopen the
> connection.
> Listening on port 12312
> 
> 
> Any ideas what's wrong with my setup?

Traditionally we speak of the machine running gdbserver as the target, 
and the machine running gdb as the host.  To make sure we are on the
same page -- you are running gdb on an i686 machine and gdbserver
on an x86_64 machine.  Correct?

How is gdb configured?  When you start gdb, it should tell you 
something like:

This GDB was configured as "--host=i386-pc-linux-gnu
--target=x86_64-linux.

Your error message may suggest that gdb expects the target to 
have 32 bit registers instead of 64.  Are you sure you are not
using the native i686 gdb?



  reply	other threads:[~2007-04-02 22:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-02 22:04 Sri Dharmasanam (sdharmas)
2007-04-02 22:26 ` Michael Snyder [this message]
2007-04-02 23:15   ` Sri Dharmasanam (sdharmas)
2007-04-03  1:23     ` Daniel Jacobowitz
2007-04-03  1:42       ` Sri Dharmasanam (sdharmas)

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=1175552753.9195.30.camel@svmsnyderlnx.palmsource.com \
    --to=michael.snyder@access-company.com \
    --cc=gdb@sourceware.org \
    --cc=sdharmas@cisco.com \
    /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