diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-08-23 01:09:38 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-08-23 01:09:38 +0000 |
commit | 701c159d9190af367e16a63ad8856d6664df1c14 (patch) | |
tree | d2d52ae21ed9c979bc40b102b75273b33d526149 /gdb/gdbtypes.h | |
parent | dcf762a12e166120394ce8afdc6ccce3ca1ddd7c (diff) | |
download | gdb-701c159d9190af367e16a63ad8856d6664df1c14.zip gdb-701c159d9190af367e16a63ad8856d6664df1c14.tar.gz gdb-701c159d9190af367e16a63ad8856d6664df1c14.tar.bz2 |
Add TYPE_FLOATFORMAT().
Diffstat (limited to 'gdb/gdbtypes.h')
-rw-r--r-- | gdb/gdbtypes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index 6869a60..4d47112 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -413,6 +413,11 @@ struct type struct cplus_struct_type *cplus_stuff; + /* FLOATFORMAT is for TYPE_CODE_FLT. It is a pointer to the + floatformat object that describes the floating-point value + that resides within the type. */ + + const struct floatformat *floatformat; } type_specific; }; @@ -722,6 +727,7 @@ extern void allocate_cplus_struct_type (struct type *); #define TYPE_TYPE_SPECIFIC(thistype) (thistype)->type_specific #define TYPE_ARG_TYPES(thistype) (thistype)->type_specific.arg_types #define TYPE_CPLUS_SPECIFIC(thistype) (thistype)->type_specific.cplus_stuff +#define TYPE_FLOATFORMAT(thistype) (thistype)->type_specific.floatformat #define TYPE_BASECLASS(thistype,index) (thistype)->fields[index].type #define TYPE_N_BASECLASSES(thistype) TYPE_CPLUS_SPECIFIC(thistype)->n_baseclasses #define TYPE_BASECLASS_NAME(thistype,index) (thistype)->fields[index].name |