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.
This commit is contained in:
parent
7936743b08
commit
0efffb96a9
7 changed files with 33 additions and 34 deletions
11
gdb/source.c
11
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));
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue