mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-30 12:44:10 +08:00
* symtab.c (find_line_symtab): scan through psymtabs
when exact_match is zero.
This commit is contained in:
parent
7d4c5211d2
commit
51432cca13
@ -1,3 +1,8 @@
|
||||
2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
|
||||
|
||||
* symtab.c (find_line_symtab): scan through psymtabs
|
||||
when exact_match is zero.
|
||||
|
||||
2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
|
||||
|
||||
* mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user