aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-01-11 16:18:48 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2021-01-11 16:18:48 -0500
commit062eaacbac087b44a0464ebf661b0eb2c707070d (patch)
tree7a6a9f2bbf4678cd082ac5e377bed949f97258bc /gdb
parent10dadadc5b239b7dfcd1f1f9a4e45facfffeb4f5 (diff)
downloadgdb-062eaacbac087b44a0464ebf661b0eb2c707070d.zip
gdb-062eaacbac087b44a0464ebf661b0eb2c707070d.tar.gz
gdb-062eaacbac087b44a0464ebf661b0eb2c707070d.tar.bz2
gdb: change jit_debug to a bool
gdb/ChangeLog: * jit.c (jit_debug): Change type to bool. (_initialize_jit): Adjust. Change-Id: Ic2b1eec28eafe8ccb2899f38ddc91ba9703cb38e
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/jit.c18
2 files changed, 14 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fbf7c9f..8af2be6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * jit.c (jit_debug): Change type to bool.
+ (_initialize_jit): Adjust.
+
2021-01-09 Tom Tromey <tom@tromey.com>
PR compile/23672
diff --git a/gdb/jit.c b/gdb/jit.c
index ad951cd..474ba83 100644
--- a/gdb/jit.c
+++ b/gdb/jit.c
@@ -58,9 +58,9 @@ static void jit_inferior_exit_hook (struct inferior *inf);
static struct gdbarch_data *jit_gdbarch_data;
-/* Non-zero if we want to see trace of jit level stuff. */
+/* True if we want to see trace of jit level stuff. */
-static unsigned int jit_debug = 0;
+static bool jit_debug = false;
static void
show_jit_debug (struct ui_file *file, int from_tty,
@@ -1251,13 +1251,13 @@ _initialize_jit ()
{
jit_reader_dir = relocate_gdb_directory (JIT_READER_DIR,
JIT_READER_DIR_RELOCATABLE);
- add_setshow_zuinteger_cmd ("jit", class_maintenance, &jit_debug,
- _("Set JIT debugging."),
- _("Show JIT debugging."),
- _("When non-zero, JIT debugging is enabled."),
- NULL,
- show_jit_debug,
- &setdebuglist, &showdebuglist);
+ add_setshow_boolean_cmd ("jit", class_maintenance, &jit_debug,
+ _("Set JIT debugging."),
+ _("Show JIT debugging."),
+ _("When non-zero, JIT debugging is enabled."),
+ NULL,
+ show_jit_debug,
+ &setdebuglist, &showdebuglist);
gdb::observers::inferior_created.attach (jit_inferior_created_hook);
gdb::observers::inferior_execd.attach (jit_inferior_created_hook);