aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/jv-lang.c7
2 files changed, 8 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a4f02a4..8ebc041 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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.
* config/i386/tm-go32.h (i386go32_frame_saved_pc): Declare.
(FRAME_SAVED_PC): Redefine to i386go32_frame_saved_pc.
diff --git a/gdb/jv-lang.c b/gdb/jv-lang.c
index 81cea0a..97f3cdf 100644
--- a/gdb/jv-lang.c
+++ b/gdb/jv-lang.c
@@ -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;
}