From 6f52d064e47ea3b527b8110ba3c09e336559a204 Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Sat, 17 Sep 1994 00:38:23 +0000 Subject: * 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. --- gdb/ch-typeprint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/ch-typeprint.c') diff --git a/gdb/ch-typeprint.c b/gdb/ch-typeprint.c index 3311e1f..41a7d6f 100644 --- a/gdb/ch-typeprint.c +++ b/gdb/ch-typeprint.c @@ -141,7 +141,7 @@ chill_type_print_base (type, stream, show, level) case TYPE_CODE_SET: fputs_filtered ("POWERSET ", stream); - chill_print_type (TYPE_FIELD_TYPE (type, 0), "", stream, + chill_print_type (TYPE_INDEX_TYPE (type), "", stream, show - 1, level); break; -- cgit v1.1