Changeset View
Changeset View
Standalone View
Standalone View
contrib/gdb/gdb/c-typeprint.c
Show First 20 Lines • Show All 534 Lines • ▼ Show 20 Lines | c_type_print_varspec_suffix (struct type *type, struct ui_file *stream, | ||||
switch (TYPE_CODE (type)) | switch (TYPE_CODE (type)) | ||||
{ | { | ||||
case TYPE_CODE_ARRAY: | case TYPE_CODE_ARRAY: | ||||
if (passed_a_ptr) | if (passed_a_ptr) | ||||
fprintf_filtered (stream, ")"); | fprintf_filtered (stream, ")"); | ||||
fprintf_filtered (stream, "["); | fprintf_filtered (stream, "["); | ||||
if (TYPE_LENGTH (type) >= 0 && TYPE_LENGTH (TYPE_TARGET_TYPE (type)) > 0 | if (TYPE_LENGTH (TYPE_TARGET_TYPE (type)) > 0 | ||||
&& TYPE_ARRAY_UPPER_BOUND_TYPE (type) != BOUND_CANNOT_BE_DETERMINED) | && TYPE_ARRAY_UPPER_BOUND_TYPE (type) != BOUND_CANNOT_BE_DETERMINED) | ||||
fprintf_filtered (stream, "%d", | fprintf_filtered (stream, "%d", | ||||
(TYPE_LENGTH (type) | (TYPE_LENGTH (type) | ||||
/ TYPE_LENGTH (TYPE_TARGET_TYPE (type)))); | / TYPE_LENGTH (TYPE_TARGET_TYPE (type)))); | ||||
fprintf_filtered (stream, "]"); | fprintf_filtered (stream, "]"); | ||||
c_type_print_varspec_suffix (TYPE_TARGET_TYPE (type), stream, show, | c_type_print_varspec_suffix (TYPE_TARGET_TYPE (type), stream, show, | ||||
0, 0); | 0, 0); | ||||
▲ Show 20 Lines • Show All 661 Lines • Show Last 20 Lines |