public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Rename install_sigint_handler
@ 2022-12-13 20:07 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2022-12-13 20:07 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=12bc5170ee9c498cd1a2be0e2dacbe5083ceb70e

commit 12bc5170ee9c498cd1a2be0e2dacbe5083ceb70e
Author: Tom Tromey <tromey@adacore.com>
Date:   Mon Dec 5 10:59:27 2022 -0700

    Rename install_sigint_handler
    
    A subsequent patch will introduce a global 'install_sigint_handler'
    function, so first rename the static one in extension.c.

Diff:
---
 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-13 20:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-13 20:07 [binutils-gdb] Rename install_sigint_handler Tom Tromey

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).