aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.h
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/gdbtypes.h
parent7f4a859c429e6e15378d3d5ead436434a5f52166 (diff)
downloadfsf-binutils-gdb-6f52d064e47ea3b527b8110ba3c09e336559a204.zip
fsf-binutils-gdb-6f52d064e47ea3b527b8110ba3c09e336559a204.tar.gz
fsf-binutils-gdb-6f52d064e47ea3b527b8110ba3c09e336559a204.tar.bz2
* 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/gdbtypes.h')
-rw-r--r--gdb/gdbtypes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index a1fc185..278a220 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -494,6 +494,7 @@ allocate_cplus_struct_type PARAMS ((struct type *));
#define TYPE_NFIELDS(thistype) (thistype)->nfields
#define TYPE_FIELDS(thistype) (thistype)->fields
+#define TYPE_INDEX_TYPE(type) TYPE_FIELD_TYPE (type, 0)
#define TYPE_LOW_BOUND(range_type) TYPE_FIELD_BITPOS (range_type, 0)
#define TYPE_HIGH_BOUND(range_type) TYPE_FIELD_BITPOS (range_type, 1)
/* If TYPE_DUMMY_RANGE is true for a range type, it was allocated