diff options
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r-- | gdb/valprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c index 49c6cb882c1..951fa97db18 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -1001,7 +1001,7 @@ val_print_array_elements (struct type *type, char *valaddr, CORE_ADDR address, /* Number of repetitions we have detected so far. */ unsigned int reps; - elttype = TYPE_TARGET_TYPE (type); + elttype = ARRAY_ELEMENT_TYPE (type); eltlen = TYPE_LENGTH (check_typedef (elttype)); len = TYPE_LENGTH (type) / eltlen; |