From: Carlos Eduardo Seo Date: Wed, 24 Oct 2007 13:25:16 +0000 (+0000) Subject: * symtab.c (find_line_symtab): scan through psymtabs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51432cca1367d4ff610ed2d7c3fa64ba335eaa15;p=binutils-gdb.git * symtab.c (find_line_symtab): scan through psymtabs when exact_match is zero. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5ccb44f571f..abcc44e56a8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-10-24 Carlos Eduardo Seo + + * symtab.c (find_line_symtab): scan through psymtabs + when exact_match is zero. + 2007-10-23 Atsushi Nemoto * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define. diff --git a/gdb/symtab.c b/gdb/symtab.c index eeddddd89d2..966bd7314be 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -2281,12 +2281,20 @@ find_line_symtab (struct symtab *symtab, int line, int *index, int *exact_match) struct objfile *objfile; struct symtab *s; + struct partial_symtab *p; if (best_index >= 0) best = best_linetable->item[best_index].line; else best = 0; + ALL_PSYMTABS (objfile, p) + { + if (strcmp (symtab->filename, p->filename) != 0) + continue; + PSYMTAB_TO_SYMTAB (p); + } + ALL_SYMTABS (objfile, s) { struct linetable *l;