aboutsummaryrefslogtreecommitdiff
path: root/gdb/m2-lang.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-12-09 07:01:43 +0000
committerFred Fish <fnf@specifix.com>1992-12-09 07:01:43 +0000
commitd62e7a20d81a770917db0ad2c4921ef3dc802e77 (patch)
treec97b472179cd174c9f450bc37a4ef90c1e71ec28 /gdb/m2-lang.c
parent22e3975901f39f8e3abbd0ad089e8b4ed50acf7f (diff)
downloadgdb-d62e7a20d81a770917db0ad2c4921ef3dc802e77.zip
gdb-d62e7a20d81a770917db0ad2c4921ef3dc802e77.tar.gz
gdb-d62e7a20d81a770917db0ad2c4921ef3dc802e77.tar.bz2
* c-lang.c (_initialize_c_language): Name changed from
_initialize_c_exp. * m2-lang.c (_initialize_m2_language): Name changed from _initialize_m2_exp. * m2-lang.c (_initialize_m2_language): Change malloc to xmalloc since it is no longer inside m2-exp.y, where it was remapped by Makefile. **** start-sanitize-chill **** * ch-lang.c (_initialize_chill_language): Name changed from _initialize_chill_exp. **** end-sanitize-chill ****
Diffstat (limited to 'gdb/m2-lang.c')
-rw-r--r--gdb/m2-lang.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c
index 77d821a..cc1c06c 100644
--- a/gdb/m2-lang.c
+++ b/gdb/m2-lang.c
@@ -418,7 +418,7 @@ const struct language_defn m2_language_defn = {
/* Initialization for Modula-2 */
void
-_initialize_m2_exp ()
+_initialize_m2_language ()
{
/* Modula-2 "pervasive" types. NOTE: these can be redefined!!! */
builtin_type_m2_int =
@@ -444,12 +444,12 @@ _initialize_m2_exp ()
TYPE_NFIELDS(builtin_type_m2_bool) = 2;
TYPE_FIELDS(builtin_type_m2_bool) =
- (struct field *) malloc (sizeof (struct field) * 2);
+ (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 *)malloc(6);
+ 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 *)malloc(5);
+ 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);