aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-11-13 16:05:36 -0700
committerTom Tromey <tom@tromey.com>2019-12-20 09:15:57 -0700
commit2dfd3df48dc7edb551718b3944eca6b35a7058a5 (patch)
tree44e08cb88dfe2cac8ed1afd0425a0cd15698cd33 /gdb
parent54217b84bdca3457c16ca7ee9e770f301fc052f9 (diff)
downloadgdb-2dfd3df48dc7edb551718b3944eca6b35a7058a5.zip
gdb-2dfd3df48dc7edb551718b3944eca6b35a7058a5.tar.gz
gdb-2dfd3df48dc7edb551718b3944eca6b35a7058a5.tar.bz2
Use bool in tui_before_prompt
This changes tui_before_prompt to take a bool rather than an int. gdb/ChangeLog 2019-12-20 Tom Tromey <tom@tromey.com> * tui/tui-hooks.c (tui_before_prompt): Change parameter to bool. (tui_before_prompt, tui_normal_stop): Update. Change-Id: I9c7f2b764748fe19621851dc4fed4775a6db211a
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/tui/tui-hooks.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2bdfba7..f910703 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2019-12-20 Tom Tromey <tom@tromey.com>
+ * tui/tui-hooks.c (tui_before_prompt): Change parameter to bool.
+ (tui_before_prompt, tui_normal_stop): Update.
+
+2019-12-20 Tom Tromey <tom@tromey.com>
+
* tui/tui-winsource.c
(tui_source_window_base::update_source_window_as_is): Don't call
set_current_source_symtab_and_line.
diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c
index bb96f4d..35a9259 100644
--- a/gdb/tui/tui-hooks.c
+++ b/gdb/tui/tui-hooks.c
@@ -112,7 +112,7 @@ tui_event_modify_breakpoint (struct breakpoint *b)
if frame information hasn't changed. */
static void
-tui_refresh_frame_and_register_information (int registers_too_p)
+tui_refresh_frame_and_register_information (bool registers_too_p)
{
struct frame_info *fi;
CORE_ADDR pc;
@@ -188,7 +188,7 @@ tui_before_prompt (const char *current_gdb_prompt)
refresh registers here unless the frame actually changed by one of these
commands. Registers will otherwise be refreshed after a normal stop or by
our tui_register_changed_hook. */
- tui_refresh_frame_and_register_information (/*registers_too_p=*/0);
+ tui_refresh_frame_and_register_information (/*registers_too_p=*/false);
}
/* Observer for the normal_stop notification. */
@@ -198,7 +198,7 @@ tui_normal_stop (struct bpstats *bs, int print_frame)
{
/* This refresh is intended to catch changes to the selected frame and to
registers following a normal stop. */
- tui_refresh_frame_and_register_information (/*registers_too_p=*/1);
+ tui_refresh_frame_and_register_information (/*registers_too_p=*/true);
}
/* Token associated with observers registered while TUI hooks are