Cygwin build failure following [PATCH 3/3 v5] Demangler crash handler
Andreas Schwab
schwab@suse.de
Mon Jul 14 10:28:00 GMT 2014
Gary Benson <gbenson@redhat.com> writes:
> diff --git a/gdb/cp-support.c b/gdb/cp-support.c
> index a8ea6fc..6a09b46 100644
> --- a/gdb/cp-support.c
> +++ b/gdb/cp-support.c
> @@ -1557,7 +1557,9 @@ gdb_demangle (const char *name, int options)
> #if defined (HAVE_SIGACTION) && defined (SA_RESTART)
> sa.sa_handler = gdb_demangle_signal_handler;
> sigemptyset (&sa.sa_mask);
> +#ifdef HAVE_SIGALTSTACK
> sa.sa_flags = SA_ONSTACK;
> +#endif
You probably need to initialize sa.sa_flags in any case.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Gdb-patches
mailing list