aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2024-04-23 09:22:57 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2024-04-23 11:26:14 -0400
commit1487293966460b07f585799834c928552aaf8202 (patch)
tree50dd79ac18b608f5f54c8fcc7cddb35ac4a823d8 /gdb/python
parent7d21eff9442d75c2b1d4beec1120115bf252dfdf (diff)
downloadfsf-binutils-gdb-1487293966460b07f585799834c928552aaf8202.zip
fsf-binutils-gdb-1487293966460b07f585799834c928552aaf8202.tar.gz
fsf-binutils-gdb-1487293966460b07f585799834c928552aaf8202.tar.bz2
gdb: change return type of check_quit_flag to bool
Change the return type of the check_quit_flag function to bool. Update a few related spots. Change-Id: I9d3a15d3f8651efb02c7d211f06222a592bd4184 Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/python.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c
index d6e5883..a6875af 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -121,7 +121,7 @@ static enum ext_lang_rc gdbpy_apply_type_printers
static void gdbpy_free_type_printers (const struct extension_language_defn *,
struct ext_lang_type_printers *);
static void gdbpy_set_quit_flag (const struct extension_language_defn *);
-static int gdbpy_check_quit_flag (const struct extension_language_defn *);
+static bool gdbpy_check_quit_flag (const struct extension_language_defn *);
static enum ext_lang_rc gdbpy_before_prompt_hook
(const struct extension_language_defn *, const char *current_gdb_prompt);
static std::optional<std::string> gdbpy_colorize
@@ -275,11 +275,11 @@ gdbpy_set_quit_flag (const struct extension_language_defn *extlang)
/* Return true if the quit flag has been set, false otherwise. */
-static int
+static bool
gdbpy_check_quit_flag (const struct extension_language_defn *extlang)
{
if (!gdb_python_initialized)
- return 0;
+ return false;
gdbpy_gil gil;
return PyOS_InterruptOccurred ();