mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
* symtab.c (lookup_symbol_aux_objfile): Use
ALL_OBJFILE_PRIMARY_SYMTABS.
This commit is contained in:
parent
659c9f3a0f
commit
a743abeb90
@ -1,5 +1,8 @@
|
||||
2012-06-28 Doug Evans <dje@google.com>
|
||||
|
||||
* symtab.c (lookup_symbol_aux_objfile): Use
|
||||
ALL_OBJFILE_PRIMARY_SYMTABS.
|
||||
|
||||
* gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
|
||||
|
||||
2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
23
gdb/symtab.c
23
gdb/symtab.c
@ -1519,18 +1519,17 @@ lookup_symbol_aux_objfile (struct objfile *objfile, int block_index,
|
||||
objfile->sf->qf->pre_expand_symtabs_matching (objfile, block_index,
|
||||
name, domain);
|
||||
|
||||
ALL_OBJFILE_SYMTABS (objfile, s)
|
||||
if (s->primary)
|
||||
{
|
||||
bv = BLOCKVECTOR (s);
|
||||
block = BLOCKVECTOR_BLOCK (bv, block_index);
|
||||
sym = lookup_block_symbol (block, name, domain);
|
||||
if (sym)
|
||||
{
|
||||
block_found = block;
|
||||
return fixup_symbol_section (sym, objfile);
|
||||
}
|
||||
}
|
||||
ALL_OBJFILE_PRIMARY_SYMTABS (objfile, s)
|
||||
{
|
||||
bv = BLOCKVECTOR (s);
|
||||
block = BLOCKVECTOR_BLOCK (bv, block_index);
|
||||
sym = lookup_block_symbol (block, name, domain);
|
||||
if (sym)
|
||||
{
|
||||
block_found = block;
|
||||
return fixup_symbol_section (sym, objfile);
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user