target_ops: Use bool throughout
[deliverable/binutils-gdb.git] / gdb / corelow.c
index f7202f75e334ba8de315c503b4d37950234f35ed..e7d9a7ed51d635ebd1479239d21452ab127af011 100644 (file)
@@ -83,16 +83,16 @@ Use a core file as a target.  Specify the filename of the core file.");
                                        ULONGEST *xfered_len) override;
   void files_info () override;
 
-  int thread_alive (ptid_t ptid) override;
+  bool thread_alive (ptid_t ptid) override;
   const struct target_desc *read_description () override;
 
   const char *pid_to_str (ptid_t) override;
 
   const char *thread_name (struct thread_info *) override;
 
-  int has_memory () override;
-  int has_stack () override;
-  int has_registers () override;
+  bool has_memory () override;
+  bool has_stack () override;
+  bool has_registers () override;
   bool info_proc (const char *, enum info_proc_what) override;
 };
 
@@ -922,10 +922,10 @@ core_target::xfer_partial (enum target_object object, const char *annex,
    to appear in an "info thread" command, which is quite a useful
    behaviour.
  */
-int
+bool
 core_target::thread_alive (ptid_t ptid)
 {
-  return 1;
+  return true;
 }
 
 /* Ask the current architecture what it knows about this core file.
@@ -989,19 +989,19 @@ core_target::thread_name (struct thread_info *thr)
   return NULL;
 }
 
-int
+bool
 core_target::has_memory ()
 {
   return (core_bfd != NULL);
 }
 
-int
+bool
 core_target::has_stack ()
 {
   return (core_bfd != NULL);
 }
 
-int
+bool
 core_target::has_registers ()
 {
   return (core_bfd != NULL);
This page took 0.024547 seconds and 4 git commands to generate.