From: "H . J . Lu" <hjl@lucon.org>
To: GDB <gdb@sourceware.cygnus.com>
Subject: Re: How to configure a cross gdb to debug natively
Date: Fri, 13 Jul 2001 14:45:00 -0000 [thread overview]
Message-ID: <20010713144557.A29571@lucon.org> (raw)
In-Reply-To: <20010713142850.A6263@nevyn.them.org>
On Fri, Jul 13, 2001 at 02:28:50PM -0700, Daniel Jacobowitz wrote:
> >
> > I thought the only difference between the native debugger and the
> > cross debugger was you couldn't debug natibely with the cross
> > debugger, but you could use the native debugger to debug in a
> > cross environment.
>
> The difference is that all code in NATDEPFILES is not included in a
> cross debugger, yes. That can substantially change the way that GDB
> works. If you configure for a cross debugger, you should expect to get
> a cross debugger out.
Does the change have any negative impact?
>
> > > what I expect to get out. Why not build your tools --host=i386-linux
> > > instead?
> >
> > As I said, gdb is the part of my tool source tree. I don't want to
> > use --host=i386-linux so that gcc and bintils won't use any header
> > files and libraries on the host machine.
>
> Build host-x-host instead?
> ../src/configure --build=i686-unknown-linux-gnu --host=i386-linux \
> --target=i386-linux
>
> Ought to give you a native debugger and compilers and not reference
> host files. Or do you mean that you want to build cross compilers and
> a native debugger at the same time? You're configuring parts of the
Yes.
> tree for different targets essentially if you do that. It may work in
That is something I tried to avoid.
> this case, but I doubt it's always supposed to work, and a hack to try
> to support it seems like a bad idea. Note that GDB is going to want
> host header files if you build it as native - things like
> <sys/procfs.h>.
And? My patch checks "${target_os}" = "${host_os}" and
"${gdb_target_cpu}" = "${gdb_host_cpu}".
H.J.
next prev parent reply other threads:[~2001-07-13 14:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-13 13:23 H . J . Lu
2001-07-13 13:48 ` H . J . Lu
2001-07-13 14:06 ` Alexandre Oliva
2001-07-13 14:08 ` Daniel Jacobowitz
2001-07-13 14:12 ` H . J . Lu
2001-07-13 14:28 ` Daniel Jacobowitz
2001-07-13 14:45 ` H . J . Lu [this message]
2001-07-13 14:52 ` Daniel Jacobowitz
2001-07-13 15:15 ` Andrew Cagney
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=20010713144557.A29571@lucon.org \
--to=hjl@lucon.org \
--cc=gdb@sourceware.cygnus.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