Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: jan.kratochvil@redhat.com
Cc: mark.kettenis@xs4all.nl, gdb-patches@sourceware.org, palves@redhat.com
Subject: Re: [patchv4 1/2] Remove a.out NetBSD and OpenBSD hosta and targets
Date: Mon, 23 Sep 2013 20:32:00 -0000	[thread overview]
Message-ID: <201309232032.r8NKWOqB022880@glazunov.sibelius.xs4all.nl> (raw)
In-Reply-To: <20130922122646.GA2748@host2.jankratochvil.net> (message from Jan	Kratochvil on Sun, 22 Sep 2013 14:26:46 +0200)

> 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.


  reply	other threads:[~2013-09-23 20:32 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-19 20:02 [patch 1/2] Remove a.out NetBSD and OpenBSD targets Jan Kratochvil
2013-09-19 20:26 ` [patchv2 " Jan Kratochvil
2013-09-19 21:01   ` [patchv3 1/2] Remove a.out NetBSD and OpenBSD hosta and targets Jan Kratochvil
2013-09-20  7:40     ` Eli Zaretskii
2013-09-20  7:47       ` Jan Kratochvil
2013-09-20  8:36         ` Eli Zaretskii
2013-09-20  8:43     ` Pedro Alves
2013-09-21 13:13       ` [patchv4 " Jan Kratochvil
2013-09-22 12:26         ` Jan Kratochvil
2013-09-23 20:32           ` Mark Kettenis [this message]
2013-09-23 20:30         ` Mark Kettenis
2013-09-24 13:52           ` [commit] " Jan Kratochvil
2013-09-20  9:24     ` [patchv3 " Mark Kettenis
2013-09-20  7:40   ` [patchv2 1/2] Remove a.out NetBSD and OpenBSD targets Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201309232032.r8NKWOqB022880@glazunov.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    --cc=palves@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox