This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[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: Mon, 24 Aug 2015 22:09:47 +0100
- Subject: [PATCH 0/3] Fix C++ build errors related to signal handler types
- Authentication-results: sourceware.org; auth=none
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
gdb/config.in | 3 -
gdb/configure | 33 ---
gdb/configure.ac | 1 -
gdb/cp-support.c | 4 +-
gdb/extension-priv.h | 3 +-
gdb/extension.c | 2 +-
gdb/gnulib/aclocal.m4 | 1 +
gdb/gnulib/config.in | 36 +++
gdb/gnulib/configure | 259 +++++++++++++++++++-
gdb/gnulib/import/Makefile.am | 44 +++-
gdb/gnulib/import/Makefile.in | 68 ++++-
gdb/gnulib/import/m4/gnulib-cache.m4 | 3 +-
gdb/gnulib/import/m4/gnulib-comp.m4 | 4 +
gdb/gnulib/import/m4/signal_h.m4 | 83 +++++++
gdb/gnulib/import/signal.in.h | 463 +++++++++++++++++++++++++++++++++++
gdb/gnulib/update-gnulib.sh | 1 +
gdb/inflow.c | 20 +-
gdb/nto-procfs.c | 4 +-
gdb/remote-m32r-sdi.c | 4 +-
gdb/remote-sim.c | 2 +-
gdb/utils.c | 4 +-
21 files changed, 963 insertions(+), 79 deletions(-)
create mode 100644 gdb/gnulib/import/m4/signal_h.m4
create mode 100644 gdb/gnulib/import/signal.in.h
--
1.9.3