From: Andrew Burgess <aburgess@redhat.com>
To: gdb-patches@sourceware.org
Cc: Andrew Burgess <aburgess@redhat.com>
Subject: [PUSHED] gdb: int to bool conversion in tracefile.c
Date: Thu, 15 Dec 2022 12:10:47 +0000 [thread overview]
Message-ID: <c91a13e4e6790324e2177fa4b98e4637e3b03f97.1671106235.git.aburgess@redhat.com> (raw)
Some obvious int to bool conversion in tracefile.c.
Should be no user visible changes after this commit.
---
gdb/tracefile.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gdb/tracefile.c b/gdb/tracefile.c
index 44d88103d4b..5ad75ebfff1 100644
--- a/gdb/tracefile.c
+++ b/gdb/tracefile.c
@@ -420,7 +420,7 @@ tracefile_fetch_registers (struct regcache *regcache, int regno)
bool
tracefile_target::has_all_memory ()
{
- return 1;
+ return true;
}
/* This is the implementation of target_ops method to_has_memory. */
@@ -428,7 +428,7 @@ tracefile_target::has_all_memory ()
bool
tracefile_target::has_memory ()
{
- return 1;
+ return true;
}
/* This is the implementation of target_ops method to_has_stack.
@@ -457,7 +457,7 @@ tracefile_target::has_registers ()
bool
tracefile_target::thread_alive (ptid_t ptid)
{
- return 1;
+ return true;
}
/* This is the implementation of target_ops method to_get_trace_status.
base-commit: 9066e0c72bb98e8182ae682239e67b23e2f17289
--
2.25.4
reply other threads:[~2022-12-15 12:10 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=c91a13e4e6790324e2177fa4b98e4637e3b03f97.1671106235.git.aburgess@redhat.com \
--to=aburgess@redhat.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).