This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 0/3] Fix C++ build errors related to signal handler types
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 27 Aug 2015 13:28:11 +0100
- Subject: Re: [PATCH 0/3] Fix C++ build errors related to signal handler types
- Authentication-results: sourceware.org; auth=none
- References: <1440450590-27215-1-git-send-email-palves at redhat dot com>
On 08/24/2015 10:09 PM, Pedro Alves wrote:
> This fixes 14 build errors like these in C++ mode:
>
> src/gdb/extension.c: In function âvoid install_sigint_handler(const signal_handler*)â:
> src/gdb/extension.c:698:41: error: invalid conversion from âvoid (*)()â to â__sighandler_t {aka void (*)(int)}â [-fpermissive]
> signal (SIGINT, handler_state->handler);
> ^
> In file included from build-gnulib/import/signal.h:52:0,
> from ../../src/gdb/extension.c:24:
> /usr/include/signal.h:102:23: error: initializing argument 2 of âvoid (* signal(int, __sighandler_t))(int)â [-fpermissive]
> extern __sighandler_t signal (int __sig, __sighandler_t __handler)
> ^
>
> Pedro Alves (3):
> Import the "signal-h" module from gnulib
> gdb: Use sighandler_t everywhere
> gdb: Drop use of obsolete AC_TYPE_SIGNAL
I pushed this in.
Thanks,
Pedro Alves