From: Tom Tromey <tromey@adacore.com>
To: gdb-patches@sourceware.org
Cc: Tom Tromey <tromey@adacore.com>
Subject: [pushed] Use boolean literals for pagination_enabled
Date: Thu, 17 Nov 2022 09:38:20 -0700 [thread overview]
Message-ID: <20221117163820.273422-1-tromey@adacore.com> (raw)
I noticed a couple of spots that used '0' rather than 'false' when
modifying pagination_enabled. This patch cleans these up.
---
gdb/infrun.c | 2 +-
gdb/tui/tui-regs.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/infrun.c b/gdb/infrun.c
index debc6054624..96346e1f25b 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -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;
}
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index 3eff98a5b69..af7f4942aba 100644
--- a/gdb/tui/tui-regs.c
+++ b/gdb/tui/tui-regs.c
@@ -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);
--
2.34.3
reply other threads:[~2022-11-17 16:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221117163820.273422-1-tromey@adacore.com \
--to=tromey@adacore.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).