Use bool in tui_before_prompt
authorTom Tromey <tom@tromey.com>
Wed, 13 Nov 2019 23:05:36 +0000 (16:05 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 20 Dec 2019 16:15:57 +0000 (09:15 -0700)
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

gdb/ChangeLog
gdb/tui/tui-hooks.c

index 2bdfba75fbeb8af60b9648b84068fb7022aa4e75..f9107030e559e971d140ab800cf7c646807e18c3 100644 (file)
@@ -1,3 +1,8 @@
+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
index bb96f4d9bbd8e7ac3618f0c718e6e598ef72a21a..35a9259447c8627d83904e3c3bef4b051f54ac02 100644 (file)
@@ -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
This page took 0.031789 seconds and 4 git commands to generate.