* 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:
Per Bothner
1994-09-17 00:38:23 +00:00
parent 7f4a859c42
commit 6f52d064e4
5 changed files with 14 additions and 9 deletions

View File

@@ -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)