This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] [7/9] Multi-target support: Fix GDB_OSABI_OPENBSD_AOUT problem
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: uweigand at de dot ibm dot com
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 26 Oct 2007 10:05:08 +0200 (CEST)
- Subject: Re: [rfc] [7/9] Multi-target support: Fix GDB_OSABI_OPENBSD_AOUT problem
- References: <200710260117.l9Q1HcWd004692@d12av02.megacenter.de.ibm.com>
> Date: Fri, 26 Oct 2007 03:17:38 +0200 (CEST)
> From: "Ulrich Weigand" <uweigand@de.ibm.com>
>
> Hello,
>
> this patch attempts to address a somewhat unfortunate situation
> relating to OpenBSD/a.out.
>
> i386obsd-tdep.c contains this FIXME:
>
> /* FIXME: kettenis/20021020: Since OpenBSD/i386 binaries are
> indistingushable from NetBSD/i386 a.out binaries, building a GDB
> that should support both these targets will probably not work as
> expected. */
> #define GDB_OSABI_OPENBSD_AOUT GDB_OSABI_NETBSD_AOUT
>
> In an --enable-targets=all build, this has the effect that two OSABI
> sniffers for the (numerically) same OSABI are registered, leading to
> an internal compiler error.
The last OpenBSD/i386 release that used a.out was OpenBSD 3.3, which
was released more than four years ago. I have no problem with
dropping a.out support for OpenBSD/i386 if that makes things easier.
However, OpenBSD/vax, OpenBSD/m68k and OpenBSD/m88k are still a.out,
so parts of your diff might still be required (didn't look at the
details of your diff yet).
Mark