binutils-gdb/gdb/doc
Gary Benson 992c7d700f 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.
2014-06-19 09:13:57 +01:00
..
ChangeLog Demangler crash handler 2014-06-19 09:13:57 +01:00
Doxyfile-base.in Add Doxygen support to GDB 2014-02-10 19:10:34 -08:00
Doxyfile-gdb-api.in Doxygenate gdbtypes.h 2014-03-12 19:36:45 -07:00
Doxyfile-gdb-xref.in Add Doxygen support to GDB 2014-02-10 19:10:34 -08:00
Doxyfile-gdbserver.in Add Doxygen support to GDB 2014-02-10 19:10:34 -08:00
Makefile.in Add obviously forgotten "PACKAGE = @PACKAGE@" to gdb/doc/Makefile.in 2014-05-09 23:16:33 -04:00
a4rc.sed
agentexpr.texi Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
all-cfg.texi Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
annotate.texinfo Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
doxy-index.in Add Doxygen support to GDB 2014-02-10 19:10:34 -08:00
fdl.texi
filter-for-doxygen Add Doxygen support to GDB 2014-02-10 19:10:34 -08:00
filter-params.pl Add Doxygen support to GDB 2014-02-10 19:10:34 -08:00
gdb.texinfo Demangler crash handler 2014-06-19 09:13:57 +01:00
gpl.texi
guile.texi Add support for guile 2.0.5. 2014-06-06 15:57:03 -07:00
lpsrc.sed
observer.texi Make display_gdb_prompt CLI-only. 2014-05-29 13:47:09 +01:00
psrc.sed
python.texi Add space before the opening parenthesis in function descriptions. 2014-06-09 07:19:28 -07:00
refcard.tex Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
stabs.texinfo Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
stack_frame.eps
stack_frame.pdf
stack_frame.png
stack_frame.svg
stack_frame.txt