aboutsummaryrefslogtreecommitdiff
path: root/gdb/m2-lang.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-02-02 17:20:45 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-02-02 17:20:45 +0000
commit61932a8ee900c0368eef3b101fa9a04050aa7c56 (patch)
treee0a50d67f3e5ef8de7283822ecacc3d4d93fee3c /gdb/m2-lang.c
parent1051c97f630bf96febe9e0029ba8df161d3a4db1 (diff)
downloadgdb-61932a8ee900c0368eef3b101fa9a04050aa7c56.zip
gdb-61932a8ee900c0368eef3b101fa9a04050aa7c56.tar.gz
gdb-61932a8ee900c0368eef3b101fa9a04050aa7c56.tar.bz2
* 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.
Diffstat (limited to 'gdb/m2-lang.c')
-rw-r--r--gdb/m2-lang.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c
index 5561561..03ff12d 100644
--- a/gdb/m2-lang.c
+++ b/gdb/m2-lang.c
@@ -443,15 +443,5 @@ _initialize_m2_language ()
TYPE_FLAG_UNSIGNED,
"BOOLEAN", (struct objfile *) NULL);
- TYPE_NFIELDS(builtin_type_m2_bool) = 2;
- TYPE_FIELDS(builtin_type_m2_bool) =
- (struct field *) xmalloc (sizeof (struct field) * 2);
- TYPE_FIELD_BITPOS(builtin_type_m2_bool,0) = 0;
- TYPE_FIELD_NAME(builtin_type_m2_bool,0) = (char *)xmalloc(6);
- strcpy(TYPE_FIELD_NAME(builtin_type_m2_bool,0),"FALSE");
- TYPE_FIELD_BITPOS(builtin_type_m2_bool,1) = 1;
- TYPE_FIELD_NAME(builtin_type_m2_bool,1) = (char *)xmalloc(5);
- strcpy(TYPE_FIELD_NAME(builtin_type_m2_bool,1),"TRUE");
-
add_language (&m2_language_defn);
}