From 4c17829508ff57f839698eb08f6adf8fdf2526a1 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 2 Dec 2001 22:08:47 +0000 Subject: [PATCH] mrealloc() -> xmrealloc(). --- gdb/ChangeLog | 5 +++++ gdb/jv-lang.c | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a4f02a46553..8ebc041d1cf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-12-02 Andrew Cagney + + * jv-lang.c (add_class_symtab_symbol): Use xmrealloc instead of + mrealloc. + 2001-12-02 Andrew Cagney * i386-tdep.c (i386go32_frame_saved_pc): New function. diff --git a/gdb/jv-lang.c b/gdb/jv-lang.c index 81cea0a42fb..97f3cdf5ec3 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; } -- 2.30.2