From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 54522 invoked by alias); 24 Aug 2015 21:09:57 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 54511 invoked by uid 89); 24 Aug 2015 21:09:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS,URIBL_BLACK autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 24 Aug 2015 21:09:53 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 4CEF08CF72 for ; Mon, 24 Aug 2015 21:09:52 +0000 (UTC) Received: from brno.lan (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t7OL9pmR024559 for ; Mon, 24 Aug 2015 17:09:51 -0400 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 0/3] Fix C++ build errors related to signal handler types Date: Mon, 24 Aug 2015 21:09:00 -0000 Message-Id: <1440450590-27215-1-git-send-email-palves@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SW-Source: 2015-08/txt/msg00710.txt.bz2 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