From: Tom Tromey Date: Mon, 5 Dec 2022 17:59:27 +0000 (-0700) Subject: Rename install_sigint_handler X-Git-Tag: gdb-13-branchpoint~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=12bc5170ee9c498cd1a2be0e2dacbe5083ceb70e;p=thirdparty%2Fbinutils-gdb.git 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 --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