mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 08:38:10 +08:00
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:
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));
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user