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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/c-varobj.c b/gdb/c-varobj.c
index 957e7f3..4911e37 100644
--- a/gdb/c-varobj.c
+++ b/gdb/c-varobj.c
@@ -191,9 +191,9 @@ c_number_of_children (const struct varobj *var)
switch (type->code ())
{
case TYPE_CODE_ARRAY:
- if (TYPE_LENGTH (type) > 0 && TYPE_LENGTH (target) > 0
+ if (type->length () > 0 && target->length () > 0
&& (type->bounds ()->high.kind () != PROP_UNDEFINED))
- children = TYPE_LENGTH (type) / TYPE_LENGTH (target);
+ children = type->length () / target->length ();
else
/* If we don't know how many elements there are, don't display
any. */