From eae7090bea9d7f129be7dddf89f8e177cdb2003d Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Thu, 19 Jun 2014 09:12:26 +0100 Subject: Refactor and expose core-dumping functionality This commit exposes the functions that dump core outside utils.c. can_dump_core gains a new parameter, "limit_kind", to allow either the soft or hard limit to be checked, and its printing has separated into the new function warn_cant_dump_core. The new function can_dump_core_warn does what can_dump_core previously did (print and warn). gdb/ 2014-06-19 Gary Benson * utils.h (resource_limit_kind): New enum. (can_dump_core): New declaration. (warn_cant_dump_core): Likewise. (dump_core): Likewise. * utils.c (dump_core): Made nonstatic. Added new parameter "limit_kind". (can_dump_core): Made nonstatic. Moved printing code to... (warn_cant_dump_core): New function. (can_dump_core_warn): Likewise. (internal_vproblem): Replace calls to can_dump_core with calls to can_dump_core_warn. Supply new argument to each. --- gdb/ChangeLog | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'gdb/ChangeLog') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d8a45c6..8e0de8a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,19 @@ 2014-06-19 Gary Benson + * utils.h (resource_limit_kind): New enum. + (can_dump_core): New declaration. + (warn_cant_dump_core): Likewise. + (dump_core): Likewise. + * utils.c (dump_core): Made nonstatic. Added new + parameter "limit_kind". + (can_dump_core): Made nonstatic. Moved printing code to... + (warn_cant_dump_core): New function. + (can_dump_core_warn): Likewise. + (internal_vproblem): Replace calls to can_dump_core with + calls to can_dump_core_warn. Supply new argument to each. + +2014-06-19 Gary Benson + * utils.h (demangler_vwarning): New declaration. (demangler_warning): Likewise. * utils.c (struct internal_problem) -- cgit v1.1