summaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-08-10 19:37:47 +0000
committerAndrew Cagney <cagney@redhat.com>2004-08-10 19:37:47 +0000
commit4d35af46fdf6aa8de036f16ff00ee28a900daf69 (patch)
tree5edc9a44778c7eb6de59dd4b6abb19c088ece3df /gdb/source.c
parent0b585b2efc64b09f056e29507ab26f754d169795 (diff)
downloadgdb-4d35af46fdf6aa8de036f16ff00ee28a900daf69.tar.gz
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.
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/source.c b/gdb/source.c
index 8c6fec1121b..aff0542c0bf 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -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);