Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Marc Khouzam <marc.khouzam@ericsson.com>
Cc: "'gdb@sourceware.org'" <gdb@sourceware.org>
Subject: Re: Can't get cross debugging to work
Date: Tue, 13 Mar 2012 19:57:00 -0000	[thread overview]
Message-ID: <4F5FA684.1050206@redhat.com> (raw)
In-Reply-To: <F7CE05678329534C957159168FA70DEC5790B29476@EUSAACMS0703.eamcs.ericsson.se>

On 03/13/2012 07:47 PM, Marc Khouzam wrote:

> Run:
>> > ./gdb/gdbserver/gdbserver :9999 ~/myBin.64


> Run:
>> > ./gdb/gdb ~/myBin.32


Here's the problem.  You should be doing:

./gdb/gdb ~/myBin.64

> warning: Selected architecture i386 is not compatible with reported target architecture i386:x86-64
> warning: Architecture rejected target-supplied description

This means that GDB thinks the architecture is i386 (because you've gave it a 32-bit
executable to debug), while gdbserver claims it is debugging a x86-64 program.

-- 
Pedro Alves


  reply	other threads:[~2012-03-13 19:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-13 19:47 Marc Khouzam
2012-03-13 19:57 ` Pedro Alves [this message]
2012-03-13 20:03   ` Marc Khouzam

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=4F5FA684.1050206@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=marc.khouzam@ericsson.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