mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
2007-08-13 Michael Snyder <msnyder@access-company.com>
* source.c (find_source_lines): Require symtab 's'.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2007-08-13 Michael Snyder <msnyder@access-company.com>
|
||||||
|
|
||||||
|
* source.c (find_source_lines): Require symtab 's'.
|
||||||
|
|
||||||
2007-08-11 Michael Snyder <msnyder@access-company.com>
|
2007-08-11 Michael Snyder <msnyder@access-company.com>
|
||||||
|
|
||||||
* completer.c: Spelling fix in comments.
|
* completer.c: Spelling fix in comments.
|
||||||
|
@ -1122,11 +1122,12 @@ find_source_lines (struct symtab *s, int desc)
|
|||||||
long mtime = 0;
|
long mtime = 0;
|
||||||
int size;
|
int size;
|
||||||
|
|
||||||
|
gdb_assert (s);
|
||||||
line_charpos = (int *) xmalloc (lines_allocated * sizeof (int));
|
line_charpos = (int *) xmalloc (lines_allocated * sizeof (int));
|
||||||
if (fstat (desc, &st) < 0)
|
if (fstat (desc, &st) < 0)
|
||||||
perror_with_name (s->filename);
|
perror_with_name (s->filename);
|
||||||
|
|
||||||
if (s && s->objfile && s->objfile->obfd)
|
if (s->objfile && s->objfile->obfd)
|
||||||
mtime = bfd_get_mtime (s->objfile->obfd);
|
mtime = bfd_get_mtime (s->objfile->obfd);
|
||||||
else if (exec_bfd)
|
else if (exec_bfd)
|
||||||
mtime = bfd_get_mtime (exec_bfd);
|
mtime = bfd_get_mtime (exec_bfd);
|
||||||
|
Reference in New Issue
Block a user