mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 11:59:27 +08:00
gdb: remove TYPE_LOW_BOUND_KIND and TYPE_HIGH_BOUND_KIND
Remove the macros, use the getters of `struct dynamic_prop` instead. gdb/ChangeLog: * gdbtypes.h (TYPE_LOW_BOUND_KIND, TYPE_HIGH_BOUND_KIND): Remove. Update all callers to use dynamic_prop::kind. Change-Id: Icb1fc761f675bfac934209f8102392504d905c44
This commit is contained in:

committed by
Simon Marchi

parent
064d9cb9e7
commit
3b606f384d
@ -780,8 +780,8 @@ c_type_print_varspec_suffix (struct type *type,
|
||||
fprintf_filtered (stream, (is_vector ?
|
||||
" __attribute__ ((vector_size(" : "["));
|
||||
/* Bounds are not yet resolved, print a bounds placeholder instead. */
|
||||
if (TYPE_HIGH_BOUND_KIND (type->index_type ()) == PROP_LOCEXPR
|
||||
|| TYPE_HIGH_BOUND_KIND (type->index_type ()) == PROP_LOCLIST)
|
||||
if (type->index_type ()->bounds ()->high.kind () == PROP_LOCEXPR
|
||||
|| type->index_type ()->bounds ()->high.kind () == PROP_LOCLIST)
|
||||
fprintf_filtered (stream, "variable length");
|
||||
else if (get_array_bounds (type, &low_bound, &high_bound))
|
||||
fprintf_filtered (stream, "%s",
|
||||
|
Reference in New Issue
Block a user