summaryrefslogtreecommitdiff
path: root/gdb/jv-lang.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-12-02 22:08:47 +0000
committerAndrew Cagney <cagney@redhat.com>2001-12-02 22:08:47 +0000
commitc57328ec083c97a3f31c6cbaeb1f9781421c26ab (patch)
tree59ba2d5c75ccfa0368836759a51e258a50b2318a /gdb/jv-lang.c
parentf6dd3d2bc1ab6d85a3f43b3ae54ec045cf6b2341 (diff)
downloadgdb-c57328ec083c97a3f31c6cbaeb1f9781421c26ab.tar.gz
mrealloc() -> xmrealloc().
Diffstat (limited to 'gdb/jv-lang.c')
-rw-r--r--gdb/jv-lang.c7
1 files changed, 3 insertions, 4 deletions
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;
}