mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 16:05:56 +08:00
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
This commit is contained in:
@ -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>
|
2021-06-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
|
||||||
|
|
||||||
* gdbthread.h (find_thread_ptid): Remove the duplicate declaration.
|
* gdbthread.h (find_thread_ptid): Remove the duplicate declaration.
|
||||||
|
11
gdb/frame.c
11
gdb/frame.c
@ -330,7 +330,8 @@ scoped_restore_selected_frame::~scoped_restore_selected_frame ()
|
|||||||
|
|
||||||
/* Flag to control debugging. */
|
/* Flag to control debugging. */
|
||||||
|
|
||||||
unsigned int frame_debug;
|
bool frame_debug;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
show_frame_debug (struct ui_file *file, int from_tty,
|
show_frame_debug (struct ui_file *file, int from_tty,
|
||||||
struct cmd_list_element *c, const char *value)
|
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);
|
set_backtrace_option_defs, &set_backtrace_cmdlist, &show_backtrace_cmdlist);
|
||||||
|
|
||||||
/* Debug this files internals. */
|
/* 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."), _("\
|
Set frame debugging."), _("\
|
||||||
Show frame debugging."), _("\
|
Show frame debugging."), _("\
|
||||||
When non-zero, frame specific internal debugging is enabled."),
|
When non-zero, frame specific internal debugging is enabled."),
|
||||||
NULL,
|
NULL,
|
||||||
show_frame_debug,
|
show_frame_debug,
|
||||||
&setdebuglist, &showdebuglist);
|
&setdebuglist, &showdebuglist);
|
||||||
}
|
}
|
||||||
|
@ -214,7 +214,7 @@ extern const struct frame_id outer_frame_id;
|
|||||||
|
|
||||||
/* Flag to control debugging. */
|
/* 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
|
/* Construct a frame ID. The first parameter is the frame's constant
|
||||||
stack address (typically the outer-bound), and the second the
|
stack address (typically the outer-bound), and the second the
|
||||||
|
Reference in New Issue
Block a user