From: Paul Smith <psmith@gnu.org>
To: Pedro Alves <palves@redhat.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: Help with cross-compiling GDB
Date: Tue, 09 Oct 2012 20:19:00 -0000 [thread overview]
Message-ID: <1349813954.10588.39.camel@homebase> (raw)
In-Reply-To: <50747B5B.8000605@redhat.com>
On Tue, 2012-10-09 at 20:30 +0100, Pedro Alves wrote:
> with --host != --target, you're configuring a cross debugger. IOW, the
> native debug support isn't included (gdb_native in configure.ac).
Yes; figured it out yesterday thanks!
> IIUC, you want to use --build to point at x86_64-olddist-linux-gnu,
> not --host.
Actually no, FYI. The --build value should almost never be set
in ./configure. It specifies the type of host that you're building on
and that should always be auto-detected correctly. The only time you'd
ever use it is if configure can't determine the correct value itself for
some reason, I suppose.
Here I want to set the --host value (which specifies the system on which
the program will be run). But I don't want to set the --target value
(or equivalently, I want the --target value to be the same as the --host
value; if you don't specify --target then it defaults to the value of
--host), because I want to debug code on the same target as I'm running
on.
I got it working now, thanks!
prev parent reply other threads:[~2012-10-09 20:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-08 20:01 Paul Smith
2012-10-09 19:30 ` Pedro Alves
2012-10-09 20:19 ` Paul Smith [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=1349813954.10588.39.camel@homebase \
--to=psmith@gnu.org \
--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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).