2007-08-11 Michael Snyder * source.c (find_source_lines): Require symtab 's'. Index: source.c =================================================================== RCS file: /cvs/src/src/gdb/source.c,v retrieving revision 1.80 diff -p -r1.80 source.c *** source.c 28 Jun 2007 22:14:06 -0000 1.80 --- source.c 11 Aug 2007 20:46:35 -0000 *************** find_source_lines (struct symtab *s, int *** 1122,1132 **** long mtime = 0; int size; line_charpos = (int *) xmalloc (lines_allocated * sizeof (int)); if (fstat (desc, &st) < 0) perror_with_name (s->filename); ! if (s && s->objfile && s->objfile->obfd) mtime = bfd_get_mtime (s->objfile->obfd); else if (exec_bfd) mtime = bfd_get_mtime (exec_bfd); --- 1122,1133 ---- long mtime = 0; int size; + gdb_assert (s); line_charpos = (int *) xmalloc (lines_allocated * sizeof (int)); if (fstat (desc, &st) < 0) perror_with_name (s->filename); ! if (s->objfile && s->objfile->obfd) mtime = bfd_get_mtime (s->objfile->obfd); else if (exec_bfd) mtime = bfd_get_mtime (exec_bfd);