From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id gJA4JSw/jmPASCAAWB0awg (envelope-from ) for ; Mon, 05 Dec 2022 13:57:48 -0500 Received: by simark.ca (Postfix, from userid 112) id 942FB1E124; Mon, 5 Dec 2022 13:57:48 -0500 (EST) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=xz/Trk6p; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 44CFB1E112 for ; Mon, 5 Dec 2022 13:57:48 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9A07A39484B9 for ; Mon, 5 Dec 2022 18:57:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9A07A39484B9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1670266667; bh=h22jLBsFW4a6wtFxqsEUxAF6CU30AeYu0x3gv+V097U=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=xz/Trk6p0sVRdtSfp+I2zD3IzCVH5ootdrHviS0fZ/FDu6qtSWFC2OmS4kcpALH+H 3EgWoS5TW0UftpzcZQiSyduiBh3rBKtRxlrF3/iJeH4tDIcqPTJTG36LRuSLB8Yc5G IUlKuuiBmfMzx1SXMc8jbYIUapAn8ij9+rcw8X9M= Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by sourceware.org (Postfix) with ESMTPS id 7A9A9381D45D for ; Mon, 5 Dec 2022 18:56:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7A9A9381D45D Received: by mail-io1-xd2c.google.com with SMTP id g20so1041336iob.2 for ; Mon, 05 Dec 2022 10:56:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=h22jLBsFW4a6wtFxqsEUxAF6CU30AeYu0x3gv+V097U=; b=VhEceEy2JQyS1MA89dHM+5eyg/tI2YNXsbH8DpiUGKhkiizfb6t/66ipX9lges5pLq CWoLHhoMMF6/8+4evrY9jjqQAJSIbH+Ni0yje5urXByYGWEDAOykkGZsABF1lZQvjHNc M9WEqloUO8DgOL1KKoArCkdTpPLt+PvLSC00ufNqY/f7J2Uu9ZN6FbQ1/bjDjfWckili 9QD+sGx8EFe8LDWvBv+n8VkNMo6mb/8T0NtBn8bIrASR/NSnqT+d/wEeuOSXVNxjwHyW /edPoKD0CaJ6g621ZC2x8HuqrqthdIXeePUSc15n9oEIL25riuEtyGV9qAxR397eZXTx sGrw== X-Gm-Message-State: ANoB5pkifZOMEVpp249ZOChAKQhdAmjrFTqdG7Dn7wlqmnC/8jyA2aQu wEkwoAcg9J/j4T/jxON/jeOPYQ8+6eLjKtzm X-Google-Smtp-Source: AA0mqf7HKkqGE6v1bmx7wfI9F0dXFy0goPmT7xuq1TlOVeDNGqmzmlE3iLlnNyno6aGHRCLJVO4tPw== X-Received: by 2002:a02:c905:0:b0:374:e77e:d3d8 with SMTP id t5-20020a02c905000000b00374e77ed3d8mr38541835jao.103.1670266618801; Mon, 05 Dec 2022 10:56:58 -0800 (PST) Received: from localhost.localdomain (97-122-76-186.hlrn.qwest.net. [97.122.76.186]) by smtp.gmail.com with ESMTPSA id z29-20020a027a5d000000b00389d02a032dsm2000459jad.172.2022.12.05.10.56.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Dec 2022 10:56:58 -0800 (PST) To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 1/3] Rename install_sigint_handler Date: Mon, 5 Dec 2022 11:56:49 -0700 Message-Id: <20221205185651.2704492-2-tromey@adacore.com> X-Mailer: git-send-email 2.34.3 In-Reply-To: <20221205185651.2704492-1-tromey@adacore.com> References: <20221205185651.2704492-1-tromey@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Tom Tromey via Gdb-patches Reply-To: Tom Tromey Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" A subsequent patch will introduce a global 'install_sigint_handler' function, so first rename the static one in extension.c. --- gdb/extension.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/extension.c b/gdb/extension.c index 8cbd80f45d5..1d951d60041 100644 --- a/gdb/extension.c +++ b/gdb/extension.c @@ -657,7 +657,7 @@ get_active_ext_lang (void) /* Install a SIGINT handler. */ static void -install_sigint_handler (const struct signal_handler *handler_state) +install_ext_sigint_handler (const struct signal_handler *handler_state) { gdb_assert (handler_state->handler_saved); @@ -756,7 +756,7 @@ restore_active_ext_lang (struct active_ext_lang_state *previous) { /* Restore the previous SIGINT handler if one was saved. */ if (previous->sigint_handler.handler_saved) - install_sigint_handler (&previous->sigint_handler); + install_ext_sigint_handler (&previous->sigint_handler); /* If there's a SIGINT recorded in the cooperative extension languages, move it to the new language, or save it in GDB's global flag if the -- 2.34.3