From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Tristan Gingold <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 00:28:00 -0000 [thread overview]
Message-ID: <20100115002805.GA26155@host0.dyn.jankratochvil.net> (raw)
In-Reply-To: <836377867l.fsf@gnu.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.
You are probably suggesting that GDB could fork, attaching to its copy (in
a new inferior) and invoke gcore on the copy. This would be a functionality
enabled only for native targets (*-nat.c) so that it could dump core even on
operating systems not supporting such operation.
It would be a feature currently unsupported by GDB and out of the scope of
this patch. Still the system core dumping would be preferred over this
GDB-native dump as it is more safe for half-crashed GDB. Therefore such
functionality would have limited audience.
Regards,
Jan
next prev parent reply other threads:[~2010-01-15 0:28 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 [this message]
2010-01-15 8:24 ` Eli Zaretskii
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=20100115002805.GA26155@host0.dyn.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=gingold@adacore.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