* parse.c (follow_types): Given (TYPE[]) (i.e. with no length),
authorPer Bothner <per@bothner.com>
Fri, 17 Feb 1995 23:20:29 +0000 (23:20 +0000)
committerPer Bothner <per@bothner.com>
Fri, 17 Feb 1995 23:20:29 +0000 (23:20 +0000)
commitfda36387ebfea914119a1287e6e492a1aa7af3ef
tree5b44a101e8b30b3ef4f643dcc3917ed536b1d5d6
parent07f27bb80c97939639598ef622548e830adb2ae7
* parse.c (follow_types):  Given (TYPE[]) (i.e. with no length),
create a 0-length array type, and set BOUND_CANNOT_BE_DETERMINED.
* valops.c (value_cast):  If a cast like (TYPE[])VALUE (i.e. array
of unknown length) use sizeof(VALUE)/sizeof(TYPE) as the length.
* c-typeprint.c (c_type_print_varspec_suffix):  If array length
is 0, print it, but not if upper_bound is BOUND_CANNOT_BE_DETERMINED.
gdb/ChangeLog
gdb/c-typeprint.c
gdb/parse.c