[1/3] Rename install_sigint_handler

Message ID 20221205185651.2704492-2-tromey@adacore.com
State Committed
Commit 12bc5170ee9c498cd1a2be0e2dacbe5083ceb70e
Headers
Series Fix Windows C-c handling |

Commit Message

Tom Tromey Dec. 5, 2022, 6:56 p.m. UTC
  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(-)
  

Patch

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