* gdbtypes.c (create_range_type): If indextype has TYPE_FLAG_STUB
set, set TYPE_FLAG_TARGET_STUB. (check_stub_type): Recalculate TYPE_LENGTH for range type. * stabsread.c (read_range_type): If index type number is followed by '=', back up, call read_type. and assume we have a true range. * gdbtypes.h (TYPE_FLAG_TARGET_STUB): Update comment. This fixes PR 6632.
This commit is contained in:
parent
7d777b91ad
commit
e55a579687
4 changed files with 39 additions and 10 deletions
|
@ -146,8 +146,8 @@ enum type_code
|
|||
|
||||
/* The target type of this type is a stub type, and this type needs to
|
||||
be updated if it gets un-stubbed in check_stub_type. Currently only
|
||||
used for arrays, in which TYPE_LENGTH of the array gets set based
|
||||
on the TYPE_LENGTH of the target type. */
|
||||
used for arrays and ranges, in which TYPE_LENGTH of the array/range
|
||||
gets set based on the TYPE_LENGTH of the target type. */
|
||||
|
||||
#define TYPE_FLAG_TARGET_STUB (1 << 3)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue