public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix C++ build errors related to signal handler types
@ 2015-08-24 21:09 Pedro Alves
  2015-08-24 21:10 ` [PATCH 3/3] gdb: Drop use of obsolete AC_TYPE_SIGNAL Pedro Alves
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Pedro Alves @ 2015-08-24 21:09 UTC (permalink / raw)
  To: gdb-patches

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-08-27 12:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-24 21:09 [PATCH 0/3] Fix C++ build errors related to signal handler types Pedro Alves
2015-08-24 21:10 ` [PATCH 3/3] gdb: Drop use of obsolete AC_TYPE_SIGNAL Pedro Alves
2015-08-24 21:10 ` [PATCH 1/3] Import the "signal-h" module from gnulib Pedro Alves
2015-08-24 21:10 ` [PATCH 2/3] gdb: Use sighandler_t everywhere Pedro Alves
2015-08-27 12:28 ` [PATCH 0/3] Fix C++ build errors related to signal handler types Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).