mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-16 04:13:50 +08:00
2004-08-10 Andrew Cagney <cagney@gnu.org>
* utils.c (xmmalloc): Delete. (xmalloc): Inline xmmalloc and mmalloc calls. (msavestring): Use xmalloc. * defs.h (xmmalloc): Delete declaration. * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of xmmalloc. * symmisc.c (extend_psymbol_list): Ditto. * symfile.c (init_psymbol_list): Ditto. * source.c (find_source_lines): Ditto. * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto. * elfread.c (elf_symtab_read): Ditto. * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto. * coffread.c (coff_symfile_init): Ditto.
This commit is contained in:
@ -984,8 +984,7 @@ find_source_lines (struct symtab *s, int desc)
|
||||
long mtime = 0;
|
||||
int size;
|
||||
|
||||
line_charpos = (int *) xmmalloc (s->objfile->md,
|
||||
lines_allocated * sizeof (int));
|
||||
line_charpos = (int *) xmalloc (lines_allocated * sizeof (int));
|
||||
if (fstat (desc, &st) < 0)
|
||||
perror_with_name (s->filename);
|
||||
|
||||
|
Reference in New Issue
Block a user