Re: [patch] Do not disappoint on "Create a core file of GDB?"

Tom Tromey
2010-01-12T16:58:56Z

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