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:
@@ -1719,11 +1719,6 @@ read_type (pp, objfile)
|
||||
case 'S':
|
||||
type1 = read_type (pp, objfile);
|
||||
type = create_set_type ((struct type*) NULL, type1);
|
||||
if (TYPE_FLAGS (type1) & TYPE_FLAG_STUB)
|
||||
{
|
||||
TYPE_FLAGS (type) |= TYPE_FLAG_TARGET_STUB;
|
||||
add_undefined_type (type);
|
||||
}
|
||||
if (is_string)
|
||||
TYPE_CODE (type) = TYPE_CODE_BITSTRING;
|
||||
if (typenums[0] != -1)
|
||||
|
||||
Reference in New Issue
Block a user