This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin build failure following [PATCH 3/3 v5] Demangler crash handler


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]