forked from Imagelibrary/binutils-gdb
* gdbtypes.h (TYPE_INDEX_TYPE): New macro.
* ch-typeprint.c, ch-valprint.c: Use TYPE_INDEX_TYPE. * ch-valprint.c (chill_val_print): Pass index type directly (instead of its TYPE_TARGET_TYPE) to print_type_scalar. * stabsread.c (read_type): Don't set TYPE_FLAG_TARGET_STUB if the index type is a stub.
This commit is contained in:
@@ -494,6 +494,7 @@ allocate_cplus_struct_type PARAMS ((struct type *));
|
||||
#define TYPE_NFIELDS(thistype) (thistype)->nfields
|
||||
#define TYPE_FIELDS(thistype) (thistype)->fields
|
||||
|
||||
#define TYPE_INDEX_TYPE(type) TYPE_FIELD_TYPE (type, 0)
|
||||
#define TYPE_LOW_BOUND(range_type) TYPE_FIELD_BITPOS (range_type, 0)
|
||||
#define TYPE_HIGH_BOUND(range_type) TYPE_FIELD_BITPOS (range_type, 1)
|
||||
/* If TYPE_DUMMY_RANGE is true for a range type, it was allocated
|
||||
|
||||
Reference in New Issue
Block a user