diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-12-02 22:43:59 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-12-02 22:43:59 +0000 |
commit | 753edfefb3a97e2f4ced997c0506411ed64e4782 (patch) | |
tree | b8fe0bed13718b2ad6d89ba1868db3024405a9c2 /gdb | |
parent | aac7f4eaf285cfa05a09ce0750f3f828ba0b0f01 (diff) | |
download | gdb-753edfefb3a97e2f4ced997c0506411ed64e4782.zip gdb-753edfefb3a97e2f4ced997c0506411ed64e4782.tar.gz gdb-753edfefb3a97e2f4ced997c0506411ed64e4782.tar.bz2 |
mmalloc() -> xmmalloc()
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/jv-lang.c | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d7dabb8..52b0a5b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2001-12-02 Andrew Cagney <ac131313@redhat.com> + * jv-lang.c (get_java_class_symtab): Use xmmalloc instead of + mmalloc. + * coffread.c, dbxread.c, elfread.c, hp-psymtab-read.c, hpread.c, nlmread.c, objfiles.c, os9kread.c, somread.c, source.c, symfile.c, symmisc.c, xcoffread.c: Use xmfree instead of mfree. diff --git a/gdb/jv-lang.c b/gdb/jv-lang.c index 97f3cdf..e221105 100644 --- a/gdb/jv-lang.c +++ b/gdb/jv-lang.c @@ -115,10 +115,9 @@ get_java_class_symtab (void) /* Allocate GLOBAL_BLOCK. This has to be relocatable. */ class_symtab_space = 128; - bl = (struct block *) - mmalloc (objfile->md, - sizeof (struct block) - + ((class_symtab_space - 1) * sizeof (struct symbol *))); + bl = xmmalloc (objfile->md, + sizeof (struct block) + + ((class_symtab_space - 1) * sizeof (struct symbol *))); *bl = *BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK); BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK) = bl; class_symtab->free_ptr = (char *) bl; |