This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Do not disappoint on "Create a core file of GDB?"
- From: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 12 Jan 2010 09:58:48 -0700
- Subject: Re: [patch] Do not disappoint on "Create a core file of GDB?"
- References: <20100111160241.GA12356@host0.dyn.jankratochvil.net>
- Reply-to: tromey at redhat dot com
Jan> this is a FAQ, GDB asks "Create a core file of GDB?", user types
Jan> "y" but a core file is never created.
[...]
Jan> Even in the case of "maint set internal-error corefile yes" it had
Jan> to be set explicitly by the user as the default is "ask", therefore
Jan> it should override the soft core limit.
This seems reasonable.
Jan> 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
Jan> * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
Jan> * configure: Regenerate.
Jan> * config.in: Regenerate.
Jan> * utils.c: Include sys/resource.h.
Jan> (dump_core, can_dump_core): New.
Jan> (internal_vproblem): Update the comment. Check can_dump_core while
Jan> setting dump_core_p. Replace two abort calls by dump_core calls.
Looks good to me.
Ok.
Tom