forked from Imagelibrary/binutils-gdb
* gdbtypes.h, ch-typeprint.c, ch-valprint.c:
Change comments regarding TYPE_CODE_BOOL. * language.c (boolean_type): Always return 1 for TYPE_CODE_BOOL, regardless of the language. (value_true): Just call value_logical_not regardless of language. * coffread.c (coff_read_enum_type), stabsread.c (read_enum_type): Remove #if 0'd code which makes some enums TYPE_CODE_BOOL. * language.h: Improve comment for la_builtin_type_vector. * m2-lang.c (_initialize_m2_language): Don't add any fields to builtin_type_m2_bool.
This commit is contained in:
@@ -111,14 +111,18 @@ enum type_code
|
||||
TYPE_CODE_METHOD, /* Method type */
|
||||
TYPE_CODE_REF, /* C++ Reference types */
|
||||
|
||||
/* Modula-2 */
|
||||
TYPE_CODE_CHAR, /* *real* character type */
|
||||
TYPE_CODE_BOOL /* BOOLEAN type */
|
||||
|
||||
/* Boolean type. 0 is false, 1 is true, and other values are non-boolean
|
||||
(e.g. FORTRAN "logical" used as unsigned int). */
|
||||
TYPE_CODE_BOOL
|
||||
};
|
||||
|
||||
/* For now allow source to use TYPE_CODE_CLASS for C++ classes, as an
|
||||
alias for TYPE_CODE_STRUCT. Eventually these should probably be
|
||||
officially distinct types within gdb. */
|
||||
alias for TYPE_CODE_STRUCT. This is for DWARF, which has a distinct
|
||||
"class" attribute. Perhaps we should actually have a separate TYPE_CODE
|
||||
so that we can print "class" or "struct" depending on what the debug
|
||||
info said. It's not clear we should bother. */
|
||||
|
||||
#define TYPE_CODE_CLASS TYPE_CODE_STRUCT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user