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: [PATCH 0/3] Fix C++ build errors related to signal handler types


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


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