From patchwork Mon Dec 5 18:56:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 61483 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4DF8A3948A4A for ; Mon, 5 Dec 2022 18:57:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4DF8A3948A4A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1670266671; 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=C7BVZNPhzxLPLrqTmjSSm+X5zh/pLJi3SP3X5iEO6MDftNpGhELewV6IF0TGjIBsJ NBaDFNkc4ksL4syCAXtH+lxqhVanzygEXTNGtYD+wREVlynGGvkL48rxsDdtuXF3b2 drb8w4zGJvgF+Ed7DACfh3H6lgNoe7kthvMl8RcQ= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org 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 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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: , X-Patchwork-Original-From: Tom Tromey via Gdb-patches From: Tom Tromey Reply-To: Tom Tromey Errors-To: gdb-patches-bounces+patchwork=sourceware.org@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