aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-08-10 20:03:32 +0000
committerAndrew Cagney <cagney@redhat.com>2004-08-10 20:03:32 +0000
commit0efffb96a98349f8305e81ec4103dacec4e59baf (patch)
tree4af60090c4ba9651755ddfc0f40251a351edc16b /gdb/source.c
parent7936743b083af802de53a9483c450d917e991d46 (diff)
downloadgdb-0efffb96a98349f8305e81ec4103dacec4e59baf.zip
gdb-0efffb96a98349f8305e81ec4103dacec4e59baf.tar.gz
gdb-0efffb96a98349f8305e81ec4103dacec4e59baf.tar.bz2
2004-08-10 Andrew Cagney <cagney@gnu.org>
* defs.h (xmrealloc): Delete. * utils.c (xmrealloc): Delete. (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc. * symmisc.c (extend_psymbol_list): Use xrealloc. * source.c (find_source_lines): Ditto. * hpread.c (hpread_lookup_type): Ditto. * dbxread.c (add_bincl_to_list): Ditto.
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gdb/source.c b/gdb/source.c
index aff0542..a55bd33 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -1014,8 +1014,8 @@ find_source_lines (struct symtab *s, int desc)
{
lines_allocated *= 2;
line_charpos =
- (int *) xmrealloc (s->objfile->md, (char *) line_charpos,
- sizeof (int) * lines_allocated);
+ (int *) xrealloc ((char *) line_charpos,
+ sizeof (int) * lines_allocated);
}
line_charpos[nlines++] = lseek (desc, 0, SEEK_CUR);
}
@@ -1052,8 +1052,8 @@ find_source_lines (struct symtab *s, int desc)
{
lines_allocated *= 2;
line_charpos =
- (int *) xmrealloc (s->objfile->md, (char *) line_charpos,
- sizeof (int) * lines_allocated);
+ (int *) xrealloc ((char *) line_charpos,
+ sizeof (int) * lines_allocated);
}
line_charpos[nlines++] = p - data;
}
@@ -1063,8 +1063,7 @@ find_source_lines (struct symtab *s, int desc)
#endif /* lseek linear. */
s->nlines = nlines;
s->line_charpos =
- (int *) xmrealloc (s->objfile->md, (char *) line_charpos,
- nlines * sizeof (int));
+ (int *) xrealloc ((char *) line_charpos, nlines * sizeof (int));
}