]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: make frame_debug a boolean
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 29 Jun 2021 15:57:14 +0000 (11:57 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 29 Jun 2021 15:57:14 +0000 (11:57 -0400)
gdb/ChangeLog:

* frame.h (frame_debug): Change type to bool.
* frame.c (frame_debug): Change type to bool.
(_initialize_frame): Adjust.

Change-Id: I27b5359a25ad53ac42618b5708a025c348a1eeda

gdb/ChangeLog
gdb/frame.c
gdb/frame.h

index 960e33b014da887dcdae2647afdbc5c4e52ed064..2a6a61dbfacea352918b6888ca1dab1d3f11b38e 100644 (file)
@@ -1,3 +1,9 @@
+2021-06-29  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * frame.h (frame_debug): Change type to bool.
+       * frame.c (frame_debug): Change type to bool.
+       (_initialize_frame): Adjust.
+
 2021-06-29  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
 
        * gdbthread.h (find_thread_ptid): Remove the duplicate declaration.
index d2e14c831a09a3e03333ed7b75ad8bdcc3f4cd2f..f85de2eaae2954f5e79d586a0076054af8b6fb86 100644 (file)
@@ -330,7 +330,8 @@ scoped_restore_selected_frame::~scoped_restore_selected_frame ()
 
 /* Flag to control debugging.  */
 
-unsigned int frame_debug;
+bool frame_debug;
+
 static void
 show_frame_debug (struct ui_file *file, int from_tty,
                  struct cmd_list_element *c, const char *value)
@@ -3195,11 +3196,11 @@ Literal \"unlimited\" or zero means no limit."),
      set_backtrace_option_defs, &set_backtrace_cmdlist, &show_backtrace_cmdlist);
 
   /* Debug this files internals.  */
-  add_setshow_zuinteger_cmd ("frame", class_maintenance, &frame_debug,  _("\
+  add_setshow_boolean_cmd ("frame", class_maintenance, &frame_debug,  _("\
 Set frame debugging."), _("\
 Show frame debugging."), _("\
 When non-zero, frame specific internal debugging is enabled."),
-                            NULL,
-                            show_frame_debug,
-                            &setdebuglist, &showdebuglist);
+                          NULL,
+                          show_frame_debug,
+                          &setdebuglist, &showdebuglist);
 }
index da52522ad2aafe16308c922dc59d288e696ce2f9..33ca5ab6f1f2ac275f5faf6cc89a5ff454bb5295 100644 (file)
@@ -214,7 +214,7 @@ extern const struct frame_id outer_frame_id;
 
 /* Flag to control debugging.  */
 
-extern unsigned int frame_debug;
+extern bool frame_debug;
 
 /* Construct a frame ID.  The first parameter is the frame's constant
    stack address (typically the outer-bound), and the second the