diff options
author | Fred Fish <fnf@specifix.com> | 1992-04-15 05:42:00 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1992-04-15 05:42:00 +0000 |
commit | 4a11eef2ebf99f527ee5452386a5f2a099ed6b8b (patch) | |
tree | 8a8e090f544dde28aaa060b49ac7c6eee14109b3 /gdb/gdbtypes.h | |
parent | e4b9dd935bd566dc1f46ee4c1a6f3c31755318d5 (diff) | |
download | gdb-4a11eef2ebf99f527ee5452386a5f2a099ed6b8b.zip gdb-4a11eef2ebf99f527ee5452386a5f2a099ed6b8b.tar.gz gdb-4a11eef2ebf99f527ee5452386a5f2a099ed6b8b.tar.bz2 |
Add TYPE_FLAG_FUND_TYPE bit to the flags member of the type structure,
and use it to decide when to print the actual type name rather than
trying to invent the name of a fundamental type. This clears up the
confusion between int/long when they are the same sizes, removes one
obstacle to multi-language support (previously valprint.c thought
everything was a C type), and allows gdb to support distinctions between
explicitly and implicitly signed types when the compiler supports such
distinction in the debug output (as does every ANSI compiler I tested
except for gcc).
Diffstat (limited to 'gdb/gdbtypes.h')
-rw-r--r-- | gdb/gdbtypes.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index 3594f8f..5d26033 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -49,8 +49,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define FT_DBL_PREC_COMPLEX 21 #define FT_EXT_PREC_COMPLEX 22 #define FT_STRING 23 +#define FT_FIXED_DECIMAL 24 +#define FT_FLOAT_DECIMAL 25 -#define FT_NUM_MEMBERS 24 +#define FT_NUM_MEMBERS 26 /* Different kinds of data types are distinguished by the `code' field. */ @@ -87,7 +89,7 @@ enum type_code #define TYPE_FLAG_UNSIGNED (1 << 0) -/* Explicity signed integer type */ +/* Explicitly signed integer type */ #define TYPE_FLAG_SIGNED (1 << 1) @@ -97,6 +99,11 @@ enum type_code #define TYPE_FLAG_STUB (1 << 2) +/* This type is a fundamental type in the current source language. */ + +#define TYPE_FLAG_FUND_TYPE (1 << 3) + + struct type { |