aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-06-29 11:57:14 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-06-29 11:57:14 -0400
commitdd4f75f2b6f0be9cb45204aacb3e22462d3c7cd5 (patch)
tree3db8004cfbf0b08cba35fe3b2498f58f46c9b4b0 /gdb
parentc2ce831330e10dab4703094491f80b6b9a5c2289 (diff)
downloadgdb-dd4f75f2b6f0be9cb45204aacb3e22462d3c7cd5.zip
gdb-dd4f75f2b6f0be9cb45204aacb3e22462d3c7cd5.tar.gz
gdb-dd4f75f2b6f0be9cb45204aacb3e22462d3c7cd5.tar.bz2
gdb: make frame_debug a boolean
gdb/ChangeLog: * frame.h (frame_debug): Change type to bool. * frame.c (frame_debug): Change type to bool. (_initialize_frame): Adjust. Change-Id: I27b5359a25ad53ac42618b5708a025c348a1eeda
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/frame.c11
-rw-r--r--gdb/frame.h2
3 files changed, 13 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 960e33b..2a6a61d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/frame.c b/gdb/frame.c
index d2e14c8..f85de2e 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -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);
}
diff --git a/gdb/frame.h b/gdb/frame.h
index da52522..33ca5ab 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -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