This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: patch to add QNX NTO i386 support
From: "Kris Warkentin" <kewarken@qnx.com>
Date: Wed, 5 Feb 2003 16:22:33 -0500
> The i386-target was "multi-arched" a while ago, which unfortunately
> means that your patch will need extensive modification before we can
> add it. Don't worry, I'll help you where needed.
Funny you should write. This is just what I've been working on for the past
few hours.
Great!
> You should probably use xm-i386.h as your xm.h file. The other stuff
> should either be discarded or moved to your nm.h file too.
Okay.
> I don't think you should try to match x86-*-nto* in configure.host;
> the configure.tgt doesn't either.
Probably right. We have a chief architect here that insists that i386 is
not correct as a generic specifier and, since our uname doesn't tell you 5
or 686, it returns x86. We take care of that mapping in config.guess though
so I believe that the x86 part is redundant now. We still build
with --target=ntox86 though.
Hmm, looking at config.sub it seems that x86 is recognized especially
for QNX. Since config.sub doesn't map x86, it's OK to add x86-*-nto*
if you want to allow people to build with something like
--target=x86-nto. Just make sure you add it to configure.tgt too.
Speaking about the ntox86 alias; patches for config.sub should be sent
to config-patches@gnu.org. Once they're added to the official CONFIG
source we'll import a new version.
Mark