summaryrefslogtreecommitdiff
path: root/gdb/ctf.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2016-08-29 11:26:40 +0100
committerPedro Alves <palves@redhat.com>2016-09-07 17:10:32 +0100
commit9a7f4b909df410e4f28576f270dd993b73bcdb51 (patch)
tree05d7c2bc18da3126ad57cfde4c66cbe633de55f9 /gdb/ctf.c
parented23ab28663bec93ae6e230aebb2dd64d58d4c43 (diff)
downloadbinutils-gdb-users/palves/cxx-target_ops.tar.gz
Use bool throughoutusers/palves/cxx-target_ops
Should probably squash?
Diffstat (limited to 'gdb/ctf.c')
-rw-r--r--gdb/ctf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/ctf.c b/gdb/ctf.c
index 3f998d955bf..035100962d6 100644
--- a/gdb/ctf.c
+++ b/gdb/ctf.c
@@ -60,7 +60,7 @@ Specify the filename of the CTF directory.");
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;
struct traceframe_info *traceframe_info () OVERRIDE;
};
@@ -1452,11 +1452,11 @@ ctf_target::xfer_partial (enum target_object object,
trace variable is found, set the value of it to *VAL and return
true, otherwise return false. */
-int
+bool
ctf_target::get_trace_state_variable_value (int tsvnum, LONGEST *val)
{
struct bt_iter_pos *pos;
- int found = 0;
+ bool found = false;
gdb_assert (ctf_iter != NULL);
/* Save the current position. */
@@ -1487,7 +1487,7 @@ ctf_target::get_trace_state_variable_value (int tsvnum, LONGEST *val)
def = bt_ctf_get_field (event, scope, "val");
*val = bt_ctf_get_uint64 (def);
- found = 1;
+ found = true;
}
}