This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch master updated. 992c7d700f99002ed455b0588488e0e42719ba81
- From: gary at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 19 Jun 2014 08:19:33 -0000
- Subject: gdb and binutils branch master updated. 992c7d700f99002ed455b0588488e0e42719ba81
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via 992c7d700f99002ed455b0588488e0e42719ba81 (commit)
via eae7090bea9d7f129be7dddf89f8e177cdb2003d (commit)
via 57fcfb1b202c09bf83e0e98dfb1d518e7be71d2c (commit)
from 45371d0ceec9e0771306060c49f378eea01b1269 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=992c7d700f99002ed455b0588488e0e42719ba81
commit 992c7d700f99002ed455b0588488e0e42719ba81
Author: Gary Benson <gbenson@redhat.com>
Date: Thu Jun 19 09:13:57 2014 +0100
Demangler crash handler
This commit wraps calls to the demangler with a segmentation fault
handler. The first time a segmentation fault is caught a core file
is generated and the user is prompted to file a bug and offered the
choice to exit or to continue their GDB session. A maintainence
option is provided to allow the user to disable the crash handler
if required.
gdb/
2014-06-19 Gary Benson <gbenson@redhat.com>
* configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
* configure: Regenerate.
* config.in: Likewise.
* main.c (signal.h): New include.
(setup_alternate_signal_stack): New function.
(captured_main): Call the above.
* cp-support.c (signal.h): New include.
(catch_demangler_crashes): New flag.
(SIGJMP_BUF): New define.
(SIGSETJMP): Likewise.
(SIGLONGJMP): Likewise.
(gdb_demangle_jmp_buf): New static global.
(gdb_demangle_attempt_core_dump): Likewise.
(gdb_demangle_signal_handler): New function.
(gdb_demangle): If catch_demangler_crashes is set, install the
above signal handler before calling bfd_demangle, and restore
the original signal handler afterwards. Display the offending
symbol and call demangler_warning the first time a segmentation
fault is caught.
(_initialize_cp_support): New maint set/show command.
gdb/doc/
2014-06-19 Gary Benson <gbenson@redhat.com>
* gdb.texinfo (Maintenance Commands): Document new
"maint set/show catch-demangler-crashes" option.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=eae7090bea9d7f129be7dddf89f8e177cdb2003d
commit eae7090bea9d7f129be7dddf89f8e177cdb2003d
Author: Gary Benson <gbenson@redhat.com>
Date: Thu Jun 19 09:12:26 2014 +0100
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 <gbenson@redhat.com>
* 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.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=57fcfb1b202c09bf83e0e98dfb1d518e7be71d2c
commit 57fcfb1b202c09bf83e0e98dfb1d518e7be71d2c
Author: Gary Benson <gbenson@redhat.com>
Date: Thu Jun 19 09:10:44 2014 +0100
Add new internal problem for demangler warnings
This commit adds a new category of internal problem for demangler
warnings. Demangler warnings behave in much the same way as internal
warnings except that they do not create core files and no option to
change this is presented to the user.
gdb/
2014-06-19 Gary Benson <gbenson@redhat.com>
* utils.h (demangler_vwarning): New declaration.
(demangler_warning): Likewise.
* utils.c (struct internal_problem)
<user_settable_should_quit>: New field.
<user_settable_should_dump_core>: Likewise
(internal_error_problem): Add values for above new fields.
(internal_warning_problem): Likewise.
(demangler_warning_problem): New static global.
(demangler_vwarning): New function.
(demangler_warning): Likewise.
(add_internal_problem_command): Selectively add commands.
(_initialize_utils): New internal problem command.
* maint.c (maintenance_demangler_warning): New function.
(_initialize_maint_cmds): New command.
gdb/doc/
2014-06-19 Gary Benson <gbenson@redhat.com>
* gdb.texinfo (Maintenance Commands): Document new
"maint demangler-warning" command and new
"maint set/show demangler-warning" option.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 54 +++++++++++++++++
gdb/config.in | 3 +
gdb/configure | 2 +-
gdb/configure.ac | 2 +-
gdb/cp-support.c | 146 +++++++++++++++++++++++++++++++++++++++++++++-
gdb/doc/ChangeLog | 11 ++++
gdb/doc/gdb.texinfo | 36 +++++++++--
gdb/main.c | 25 ++++++++
gdb/maint.c | 15 +++++
gdb/utils.c | 163 ++++++++++++++++++++++++++++++++++----------------
gdb/utils.h | 32 ++++++++++
11 files changed, 428 insertions(+), 61 deletions(-)
hooks/post-receive
--
gdb and binutils