diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-12-02 22:38:23 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-12-02 22:38:23 +0000 |
commit | aac7f4eaf285cfa05a09ce0750f3f828ba0b0f01 (patch) | |
tree | eb4b35b0031b389cdb25e2d2ed735f4fb663d11e /gdb/symmisc.c | |
parent | 4c17829508ff57f839698eb08f6adf8fdf2526a1 (diff) | |
download | gdb-aac7f4eaf285cfa05a09ce0750f3f828ba0b0f01.zip gdb-aac7f4eaf285cfa05a09ce0750f3f828ba0b0f01.tar.gz gdb-aac7f4eaf285cfa05a09ce0750f3f828ba0b0f01.tar.bz2 |
mfree() -> xmfree().
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r-- | gdb/symmisc.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c index f440f07..3c12988 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -89,10 +89,10 @@ free_symtab_block (struct objfile *objfile, struct block *b) n = BLOCK_NSYMS (b); for (i = 0; i < n; i++) { - mfree (objfile->md, SYMBOL_NAME (BLOCK_SYM (b, i))); - mfree (objfile->md, (PTR) BLOCK_SYM (b, i)); + xmfree (objfile->md, SYMBOL_NAME (BLOCK_SYM (b, i))); + xmfree (objfile->md, (PTR) BLOCK_SYM (b, i)); } - mfree (objfile->md, (PTR) b); + xmfree (objfile->md, (PTR) b); } /* Free all the storage associated with the struct symtab <- S. @@ -126,7 +126,7 @@ free_symtab (register struct symtab *s) for (i = 0; i < n; i++) free_symtab_block (s->objfile, BLOCKVECTOR_BLOCK (bv, i)); /* Free the blockvector itself. */ - mfree (s->objfile->md, (PTR) bv); + xmfree (s->objfile->md, (PTR) bv); /* Also free the linetable. */ case free_linetable: @@ -134,22 +134,22 @@ free_symtab (register struct symtab *s) or by some other symtab, except for our linetable. Free that now. */ if (LINETABLE (s)) - mfree (s->objfile->md, (PTR) LINETABLE (s)); + xmfree (s->objfile->md, (PTR) LINETABLE (s)); break; } /* If there is a single block of memory to free, free it. */ if (s->free_ptr != NULL) - mfree (s->objfile->md, s->free_ptr); + xmfree (s->objfile->md, s->free_ptr); /* Free source-related stuff */ if (s->line_charpos != NULL) - mfree (s->objfile->md, (PTR) s->line_charpos); + xmfree (s->objfile->md, (PTR) s->line_charpos); if (s->fullname != NULL) - mfree (s->objfile->md, s->fullname); + xmfree (s->objfile->md, s->fullname); if (s->debugformat != NULL) - mfree (s->objfile->md, s->debugformat); - mfree (s->objfile->md, (PTR) s); + xmfree (s->objfile->md, s->debugformat); + xmfree (s->objfile->md, (PTR) s); } void |