]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: int to bool conversion in tracefile.c
authorAndrew Burgess <aburgess@redhat.com>
Thu, 15 Dec 2022 11:33:37 +0000 (11:33 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Thu, 15 Dec 2022 12:09:51 +0000 (12:09 +0000)
Some obvious int to bool conversion in tracefile.c.

Should be no user visible changes after this commit.

gdb/tracefile.c

index 44d88103d4bb7cd60ba906df835964c5b44e54d0..5ad75ebfff1178e5e21ea17a907849afd38290f3 100644 (file)
@@ -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.