This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] mrealloc() -> xmrealloc()


Just FYI.
	Andrew
2001-12-02  Andrew Cagney  <ac131313@redhat.com>

	* jv-lang.c (add_class_symtab_symbol): Use xmrealloc instead of
	mrealloc.

Index: jv-lang.c
===================================================================
RCS file: /cvs/src/src/gdb/jv-lang.c,v
retrieving revision 1.9
diff -p -r1.9 jv-lang.c
*** jv-lang.c	2001/10/21 01:57:42	1.9
--- jv-lang.c	2001/12/02 22:03:18
*************** add_class_symtab_symbol (struct symbol *
*** 136,145 ****
      {
        /* 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 *)));
        class_symtab->free_ptr = (char *) bl;
        BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK) = bl;
      }
--- 136,144 ----
      {
        /* Need to re-allocate. */
        class_symtab_space *= 2;
!       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;
      }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]