From: Marc Khouzam <marc.khouzam@ericsson.com>
To: "'Pedro Alves'" <palves@redhat.com>
Cc: "'gdb@sourceware.org'" <gdb@sourceware.org>
Subject: RE: Can't get cross debugging to work
Date: Tue, 13 Mar 2012 20:03:00 -0000 [thread overview]
Message-ID: <F7CE05678329534C957159168FA70DEC5790B294AC@EUSAACMS0703.eamcs.ericsson.se> (raw)
In-Reply-To: <4F5FA684.1050206@redhat.com>
> -----Original Message-----
> From: Pedro Alves [mailto:palves@redhat.com]
> Sent: Tuesday, March 13, 2012 3:57 PM
> To: Marc Khouzam
> Cc: 'gdb@sourceware.org'
> Subject: Re: Can't get cross debugging to work
>
> 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.
And it works! Thanks for the quick answer.
I'd like to see the --enable-targets feature explained better
in the documentation. I'll try to find time and write a patch,
but I don't understand much of it, so it will be to get the ball
rolling.
Thanks again!
Marc
prev parent reply other threads:[~2012-03-13 20:03 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
2012-03-13 20:03 ` Marc Khouzam [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=F7CE05678329534C957159168FA70DEC5790B294AC@EUSAACMS0703.eamcs.ericsson.se \
--to=marc.khouzam@ericsson.com \
--cc=gdb@sourceware.org \
--cc=palves@redhat.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