mmalloc() -> xmmalloc()
authorAndrew Cagney <cagney@redhat.com>
Sun, 2 Dec 2001 22:43:59 +0000 (22:43 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 2 Dec 2001 22:43:59 +0000 (22:43 +0000)
gdb/ChangeLog
gdb/jv-lang.c

index d7dabb8ddea262924ce5bd70e75f259f2403398f..52b0a5be59ebc8b0847761e209e932808dd7e86e 100644 (file)
@@ -1,5 +1,8 @@
 2001-12-02  Andrew Cagney  <ac131313@redhat.com>
 
+       * jv-lang.c (get_java_class_symtab): Use xmmalloc instead of
+       mmalloc.
+
        * coffread.c, dbxread.c, elfread.c, hp-psymtab-read.c, hpread.c,
        nlmread.c, objfiles.c, os9kread.c, somread.c, source.c, symfile.c,
        symmisc.c, xcoffread.c: Use xmfree instead of mfree.
index 97f3cdf5ec35918f180a5e7cb6ea9589fa16f042..e221105ed6ff3e58c7764af5f820a269cf8f4090 100644 (file)
@@ -115,10 +115,9 @@ get_java_class_symtab (void)
 
       /* Allocate GLOBAL_BLOCK.  This has to be relocatable. */
       class_symtab_space = 128;
-      bl = (struct block *)
-       mmalloc (objfile->md,
-                sizeof (struct block)
-                + ((class_symtab_space - 1) * sizeof (struct symbol *)));
+      bl = xmmalloc (objfile->md,
+                    sizeof (struct block)
+                    + ((class_symtab_space - 1) * sizeof (struct symbol *)));
       *bl = *BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK);
       BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK) = bl;
       class_symtab->free_ptr = (char *) bl;