This is the mail archive of the gdb-patches@sourceware.org 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: [rfc] [7/9] Multi-target support: Fix GDB_OSABI_OPENBSD_AOUT problem


> 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


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