* [PUSHED] gdb: convert callback_handler_installed from int to bool
@ 2022-02-16 11:52 Andrew Burgess via Gdb-patches
0 siblings, 0 replies; only message in thread
From: Andrew Burgess via Gdb-patches @ 2022-02-16 11:52 UTC (permalink / raw)
To: gdb-patches; +Cc: Andrew Burgess
Simple int to bool conversion on callback_handler_installed in
event-top.c. There should be no user visible changes after this
commit.
---
gdb/event-top.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gdb/event-top.c b/gdb/event-top.c
index 52b4bfd7d1d..8890c4fae2d 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -301,7 +301,7 @@ change_line_handler (int editing)
is typing would lose input. */
/* Whether we've registered a callback handler with readline. */
-static int callback_handler_installed;
+static bool callback_handler_installed;
/* See event-top.h, and above. */
@@ -311,7 +311,7 @@ gdb_rl_callback_handler_remove (void)
gdb_assert (current_ui == main_ui);
rl_callback_handler_remove ();
- callback_handler_installed = 0;
+ callback_handler_installed = false;
}
/* See event-top.h, and above. Note this wrapper doesn't have an
@@ -329,7 +329,7 @@ gdb_rl_callback_handler_install (const char *prompt)
gdb_assert (!callback_handler_installed);
rl_callback_handler_install (prompt, gdb_rl_callback_handler);
- callback_handler_installed = 1;
+ callback_handler_installed = true;
}
/* See event-top.h, and above. */
--
2.25.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-02-16 11:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-16 11:52 [PUSHED] gdb: convert callback_handler_installed from int to bool Andrew Burgess via Gdb-patches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox