Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gingold@adacore.com, gdb-patches@sourceware.org
Subject: Re: [patch] Do not disappoint on "Create a core file of GDB?"
Date: Fri, 15 Jan 2010 08:24:00 -0000	[thread overview]
Message-ID: <83ockv7p1v.fsf@gnu.org> (raw)
In-Reply-To: <20100115002805.GA26155@host0.dyn.jankratochvil.net>

> Date: Fri, 15 Jan 2010 01:28:05 +0100
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> Cc: Tristan Gingold <gingold@adacore.com>, gdb-patches@sourceware.org
> 
> On Tue, 12 Jan 2010 20:37:50 +0100, Eli Zaretskii wrote:
> > In case I wasn't clear, I was actually wondering how come we compile a
> > source file that's needed for reading and writing core files on a
> > system where core files aren't supported.  We shouldn't compile it,
> > and this problem should not exist.
> 
> This code is about invoking system default SIGABRT action which is usually to
> dump a core.  Calling abort() is simple enough it IMO does not make sense to
> move it to some host/target-dependent file.

I don't want to start a dispute, just to make sure my intent is clear.

We are calling `abort' here with a very specific purpose: producing a
core file.  On systems that don't support core files, calling `abort'
in this context does not make sense, even though `bort' is an ANSI
function and should be supported by any system where GDB can be built.
So the code which does that should not be compiled on such systems,
IMO.  Ifdef'ing it away conditioned by such systems is much easier
than introducing configury, whose results we know in advance.


  reply	other threads:[~2010-01-15  8:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-11 16:03 Jan Kratochvil
2010-01-11 16:06 ` Tristan Gingold
2010-01-11 16:18   ` Jan Kratochvil
2010-01-11 19:15   ` Eli Zaretskii
2010-01-12  8:44     ` Tristan Gingold
2010-01-12 19:37       ` Eli Zaretskii
2010-01-15  0:28         ` Jan Kratochvil
2010-01-15  8:24           ` Eli Zaretskii [this message]
2010-01-12 16:58 ` Tom Tromey
2010-01-15  0:35   ` Jan Kratochvil
2010-01-30 13:05     ` Mark Kettenis
2010-01-30 14:47       ` Jan Kratochvil
2010-01-31 14:13         ` Mark Kettenis
2010-03-31 13:38           ` Pierre Muller

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=83ockv7p1v.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=gingold@adacore.com \
    --cc=jan.kratochvil@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