summaryrefslogtreecommitdiff
path: root/gdb/ch-typeprint.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1994-09-17 00:38:23 +0000
committerPer Bothner <per@bothner.com>1994-09-17 00:38:23 +0000
commit6f52d064e47ea3b527b8110ba3c09e336559a204 (patch)
tree37176969fcf18e1edf201cde1f412089480c3851 /gdb/ch-typeprint.c
parent7f4a859c429e6e15378d3d5ead436434a5f52166 (diff)
* 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.
Diffstat (limited to 'gdb/ch-typeprint.c')
-rw-r--r--gdb/ch-typeprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ch-typeprint.c b/gdb/ch-typeprint.c
index 3311e1f920..41a7d6fb4e 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;