Have value::bits_synthetic_pointer return bool

This changes value::bits_synthetic_pointer to return bool and fixes up
some fallout from this.

Reviewed-By: Bruno Larsen <blarsen@redhat.com>
This commit is contained in:
Tom Tromey
2023-02-14 10:16:26 -07:00
parent 42c13555ff
commit 19124154b9
5 changed files with 14 additions and 14 deletions

View File

@@ -187,10 +187,10 @@ lval_func_write (struct value *v, struct value *fromval)
}
}
/* Return nonzero if bits in V from OFFSET and LENGTH represent a
/* Return true if bits in V from OFFSET and LENGTH represent a
synthetic pointer. */
static int
static bool
lval_func_check_synthetic_pointer (const struct value *v,
LONGEST offset, int length)
{
@@ -208,7 +208,7 @@ lval_func_check_synthetic_pointer (const struct value *v,
end++;
if (end > c->n)
return 0;
return false;
for (i = start; i < end; i++)
{
@@ -217,10 +217,10 @@ lval_func_check_synthetic_pointer (const struct value *v,
if (!c->val->bits_synthetic_pointer (c->indices[i] * elsize + comp_offset,
comp_length))
return 0;
return false;
}
return 1;
return true;
}
static void *