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: [patchv4 1/2] Remove a.out NetBSD and OpenBSD hosta and targets


> Date: Sun, 22 Sep 2013 14:26:46 +0200
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> 
> Hi Mark,
> 
> additionally I thought one can remove a.out support from *bsd-{nat,tdep}.c
> files.  But then I found in sparcnbsd-tdep.c:
> 
> /* OpenBSD uses the traditional NetBSD core file format, even for
>    ports that use ELF.  Therefore, if the default OS ABI is OpenBSD
>    ELF, we return that instead of NetBSD a.out.  This is mainly for
>    the benfit of OpenBSD/sparc64, which inherits the sniffer below
>    since we include this file for an OpenBSD/sparc64 target.  For
>    OpenBSD/sparc, the NetBSD a.out OS ABI is probably similar enough
>    to both the OpenBSD a.out and the OpenBSD ELF OS ABI.  */
> #if defined (GDB_OSABI_DEFAULT) && (GDB_OSABI_DEFAULT == GDB_OSABI_OPENBSD_ELF)
> #define GDB_OSABI_NETBSD_CORE GDB_OSABI_OPENBSD_ELF
> #else
> #define GDB_OSABI_NETBSD_CORE GDB_OSABI_NETBSD_AOUT
> #endif
> 
> OTOH there is even code for ELF BSD core files. Still the patch
> would probably regress OpenBSD so just posting it here as is FYI
> without ChangeLog.

The switch of core files from traditional ("a.out") to ELF format in
OpenBSD was fairly recent, so I don't think it is time yet to do this.


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