Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 1/5] gdb: change jit_debug to a bool
@ 2021-01-09  4:28 Simon Marchi via Gdb-patches
  2021-01-09  4:28 ` [PATCH 2/5] gdb: convert jit to new-style debug macros Simon Marchi via Gdb-patches
                   ` (6 more replies)
  0 siblings, 7 replies; 21+ messages in thread
From: Simon Marchi via Gdb-patches @ 2021-01-09  4:28 UTC (permalink / raw)
  To: gdb-patches

gdb/ChangeLog:

	* jit.c (jit_debug): Change type to bool.
	(_initialize_jit): Adjust.

Change-Id: Ic2b1eec28eafe8ccb2899f38ddc91ba9703cb38e
---
 gdb/jit.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/gdb/jit.c b/gdb/jit.c
index ad951cdfbb52..474ba838b86b 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);
-- 
2.29.2


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2021-01-13 15:50 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-09  4:28 [PATCH 1/5] gdb: change jit_debug to a bool Simon Marchi via Gdb-patches
2021-01-09  4:28 ` [PATCH 2/5] gdb: convert jit to new-style debug macros Simon Marchi via Gdb-patches
2021-01-11 21:18   ` Tom Tromey
2021-01-11 21:20     ` Simon Marchi via Gdb-patches
2021-01-09  4:28 ` [PATCH 3/5] gdb: convert aarch64 " Simon Marchi via Gdb-patches
2021-01-09  4:31   ` Simon Marchi via Gdb-patches
2021-01-11 13:18     ` Luis Machado via Gdb-patches
2021-01-11 21:30       ` Simon Marchi via Gdb-patches
2021-01-11 21:50         ` Luis Machado via Gdb-patches
2021-01-11 21:54           ` Simon Marchi via Gdb-patches
2021-01-09  4:28 ` [PATCH 4/5] gdb: convert solib-aix " Simon Marchi via Gdb-patches
2021-01-11 21:19   ` Tom Tromey
2021-01-11 21:32     ` Simon Marchi via Gdb-patches
2021-01-09  4:28 ` [PATCH 5/5] gdb: convert arc " Simon Marchi via Gdb-patches
2021-01-09  4:37   ` Simon Marchi via Gdb-patches
2021-01-13 15:35     ` Shahab Vahedi via Gdb-patches
2021-01-09  4:29 ` [PATCH 1/5] gdb: change jit_debug to a bool Simon Marchi via Gdb-patches
2021-01-11 21:17 ` Tom Tromey
2021-01-11 21:19   ` Simon Marchi via Gdb-patches
2021-01-13 14:32 ` Shahab Vahedi via Gdb-patches
2021-01-13 15:49   ` Simon Marchi 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