public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb: int to bool conversion in tracefile.c
@ 2022-12-15 12:10 Andrew Burgess
  0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2022-12-15 12:10 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c91a13e4e6790324e2177fa4b98e4637e3b03f97

commit c91a13e4e6790324e2177fa4b98e4637e3b03f97
Author: Andrew Burgess <aburgess@redhat.com>
Date:   Thu Dec 15 11:33:37 2022 +0000

    gdb: int to bool conversion in tracefile.c
    
    Some obvious int to bool conversion in tracefile.c.
    
    Should be no user visible changes after this commit.

Diff:
---
 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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-15 12:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-15 12:10 [binutils-gdb] gdb: int to bool conversion in tracefile.c Andrew Burgess

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).