mrealloc() -> xmrealloc().
authorAndrew Cagney <cagney@redhat.com>
Sun, 2 Dec 2001 22:08:47 +0000 (22:08 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 2 Dec 2001 22:08:47 +0000 (22:08 +0000)
gdb/ChangeLog
gdb/jv-lang.c

index a4f02a46553b4dbf13f518956afa3f8487cac90e..8ebc041d1cfc5fa5d147ac47d21108ce783ec8cd 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-02  Andrew Cagney  <ac131313@redhat.com>
+
+       * jv-lang.c (add_class_symtab_symbol): Use xmrealloc instead of
+       mrealloc.
+
 2001-12-02  Andrew Cagney  <ac131313@redhat.com>
 
        * i386-tdep.c (i386go32_frame_saved_pc): New function.
index 81cea0a42fbafc58a511ca0943fbfae6cc46e1ce..97f3cdf5ec35918f180a5e7cb6ea9589fa16f042 100644 (file)
@@ -136,10 +136,9 @@ add_class_symtab_symbol (struct symbol *sym)
     {
       /* Need to re-allocate. */
       class_symtab_space *= 2;
-      bl = (struct block *)
-       mrealloc (symtab->objfile->md, bl,
-                 sizeof (struct block)
-                 + ((class_symtab_space - 1) * sizeof (struct symbol *)));
+      bl = xmrealloc (symtab->objfile->md, bl,
+                     sizeof (struct block)
+                     + ((class_symtab_space - 1) * sizeof (struct symbol *)));
       class_symtab->free_ptr = (char *) bl;
       BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK) = bl;
     }