target_ops: Use bool throughout
[deliverable/binutils-gdb.git] / gdb / tracefile-tfile.c
index af8e3bd83ba615154ad75de185ff21c99968e80f..d224ad9760ad9ff7be1d2358179a5ac148325d2e 100644 (file)
@@ -67,7 +67,7 @@ Use a trace file as a target.  Specify the filename of the trace file.");
   void files_info () override;
   int trace_find (enum trace_find_type type, int num,
                          CORE_ADDR addr1, CORE_ADDR addr2, int *tpp) override;
-  int get_trace_state_variable_value (int tsv, LONGEST *val) override;
+  bool get_trace_state_variable_value (int tsv, LONGEST *val) override;
   traceframe_info_up traceframe_info () override;
 
   void get_tracepoint_status (struct breakpoint *tp,
@@ -1033,11 +1033,11 @@ tfile_target::xfer_partial (enum target_object object,
 /* Iterate through the blocks of a trace frame, looking for a 'V'
    block with a matching tsv number.  */
 
-int
+bool
 tfile_target::get_trace_state_variable_value (int tsvnum, LONGEST *val)
 {
   int pos;
-  int found = 0;
+  bool found = false;
 
   /* Iterate over blocks in current frame and find the last 'V'
      block in which tsv number is TSVNUM.  In one trace frame, there
@@ -1058,7 +1058,7 @@ tfile_target::get_trace_state_variable_value (int tsvnum, LONGEST *val)
          *val = extract_signed_integer ((gdb_byte *) val, 8,
                                         gdbarch_byte_order
                                         (target_gdbarch ()));
-         found = 1;
+         found = true;
        }
       pos += (4 + 8);
     }
This page took 0.025132 seconds and 4 git commands to generate.