aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-varobj.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/c-varobj.c')
-rw-r--r--gdb/c-varobj.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/c-varobj.c b/gdb/c-varobj.c
index e3b097b..2517f39 100644
--- a/gdb/c-varobj.c
+++ b/gdb/c-varobj.c
@@ -34,7 +34,7 @@ static void cplus_class_num_children (struct type *type, int children[3]);
This has already been determined by *_describe_child. The easiest
thing to do is to compare the child's name with ANONYMOUS_*_NAME. */
-int
+bool
varobj_is_anonymous_child (const struct varobj *child)
{
return (child->name == ANONYMOUS_STRUCT_NAME
@@ -131,14 +131,14 @@ adjust_value_for_child_access (struct value **value,
/* Is VAR a path expression parent, i.e., can it be used to construct
a valid path expression? */
-static int
+static bool
c_is_path_expr_parent (const struct varobj *var)
{
struct type *type;
/* "Fake" children are not path_expr parents. */
if (CPLUS_FAKE_CHILD (var))
- return 0;
+ return false;
type = varobj_get_gdb_type (var);
@@ -172,10 +172,10 @@ c_is_path_expr_parent (const struct varobj *var)
}
}
- return 0;
+ return false;
}
- return 1;
+ return true;
}
/* C */