Use boolean literals for pagination_enabled
authorTom Tromey <tromey@adacore.com>
Thu, 17 Nov 2022 16:35:20 +0000 (09:35 -0700)
committerTom Tromey <tromey@adacore.com>
Thu, 17 Nov 2022 16:35:20 +0000 (09:35 -0700)
I noticed a couple of spots that used '0' rather than 'false' when
modifying pagination_enabled.  This patch cleans these up.

gdb/infrun.c
gdb/tui/tui-regs.c

index debc60546246c342f1e4144e74b046485d606207..96346e1f25b15c43761659686d276baecefb004d 100644 (file)
@@ -259,7 +259,7 @@ set_observer_mode (const char *args, int from_tty,
      going out we leave it that way.  */
   if (observer_mode)
     {
-      pagination_enabled = 0;
+      pagination_enabled = false;
       non_stop = non_stop_1 = true;
     }
 
index 3eff98a5b69d3389af4173356aeced605c178b9e..af7f4942aba2dcb8bf2824f6ee61b5d96a8979a6 100644 (file)
@@ -93,7 +93,7 @@ tui_register_format (frame_info_ptr frame, int regnum)
   tab_expansion_file stream;
 
   scoped_restore save_pagination
-    = make_scoped_restore (&pagination_enabled, 0);
+    = make_scoped_restore (&pagination_enabled, false);
   scoped_restore save_stdout
     = make_scoped_restore (&gdb_stdout, &stream);