This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch/in] Add (broken) hppa-elf target


Date: Sun, 18 Aug 2002 13:27:56 -0400
From: Andrew Cagney <ac131313@ges.redhat.com>

PS: To give you a headache :-) Even though a native i386-ibm-aix won't build, there is a good chance that an i386-ibm-aix host will build an i386-ibm-aix cross debugger. This is correct behavour because a cross debugger should be buildable on any host :-)

Yup. Except that --target=i386-ibm-aix won't give you exactly a
i386-ibm-aix cross-debuger. It will give you the same generic i386
cross-debuger as --target=i386-elf or --target=i386-whatever-junk.
Suppose i386-ibm-aix had a rather peculiar ABI that's really
incompatible with the generic i386 ABI. The resulting GDB would not
be very useful. Shouldn't we somehow warn against this?
(I've ended up debugging an arm target using an x86 gdb so it is still useful :-)

I guess we could. src/configure.in currently disables the ia64-elf target because it doesn't build. A warning message is printed but it is burried in amongst all the other autoconf output.

Anyway, I think it is easier in cases such as this, to just let GDB built the best it can. If a warning is really needed then perhaps have the OS sniffer detect and report something (Hmm, I just deleted the messaging indicating that the OSABI was unknown :-( ).

enjoy,
Andrew



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]