mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-15 11:56:11 +08:00
mrealloc() -> xmrealloc().
This commit is contained in:
@ -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>
|
2001-12-02 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
* i386-tdep.c (i386go32_frame_saved_pc): New function.
|
* i386-tdep.c (i386go32_frame_saved_pc): New function.
|
||||||
|
@ -136,10 +136,9 @@ add_class_symtab_symbol (struct symbol *sym)
|
|||||||
{
|
{
|
||||||
/* Need to re-allocate. */
|
/* Need to re-allocate. */
|
||||||
class_symtab_space *= 2;
|
class_symtab_space *= 2;
|
||||||
bl = (struct block *)
|
bl = xmrealloc (symtab->objfile->md, bl,
|
||||||
mrealloc (symtab->objfile->md, bl,
|
sizeof (struct block)
|
||||||
sizeof (struct block)
|
+ ((class_symtab_space - 1) * sizeof (struct symbol *)));
|
||||||
+ ((class_symtab_space - 1) * sizeof (struct symbol *)));
|
|
||||||
class_symtab->free_ptr = (char *) bl;
|
class_symtab->free_ptr = (char *) bl;
|
||||||
BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK) = bl;
|
BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK) = bl;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user