diff options
Diffstat (limited to 'gdb/ada-valprint.c')
-rw-r--r-- | gdb/ada-valprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c index cc8352f..4dad1fb 100644 --- a/gdb/ada-valprint.c +++ b/gdb/ada-valprint.c @@ -162,7 +162,7 @@ val_print_packed_array_elements (struct type *type, const gdb_byte *valaddr, { LONGEST high; - if (get_discrete_bounds (TYPE_FIELD_TYPE (type, 0), &low, &high) < 0) + if (get_discrete_bounds (index_type, &low, &high) < 0) len = 1; else len = high - low + 1; |