+2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * minsyms.c (lookup_minimal_symbol): Also check the separate
+ debug objfile.
+ (lookup_minimal_symbol_text): Likewise.
+ (lookup_minimal_symbol_solib_trampoline): Likewise.
+ * symtab.c (lookup_global_symbol_from_objfile): Likewise.
+
2007-12-18 Vladimir Prus <vladimir@codesourcery.com>
* mi/mi-main.c (mi_cmd_list_features): Announce
objfile != NULL && found_symbol == NULL;
objfile = objfile->next)
{
- if (objf == NULL || objf == objfile)
+ if (objf == NULL || objf == objfile
+ || objf->separate_debug_objfile == objfile)
{
/* Do two passes: the first over the ordinary hash table,
and the second over the demangled hash table. */
objfile != NULL && found_symbol == NULL;
objfile = objfile->next)
{
- if (objf == NULL || objf == objfile)
+ if (objf == NULL || objf == objfile
+ || objf->separate_debug_objfile == objfile)
{
for (msymbol = objfile->msymbol_hash[hash];
msymbol != NULL && found_symbol == NULL;
objfile != NULL && found_symbol == NULL;
objfile = objfile->next)
{
- if (objf == NULL || objf == objfile)
+ if (objf == NULL || objf == objfile
+ || objf->separate_debug_objfile == objfile)
{
for (msymbol = objfile->msymbol_hash[hash];
msymbol != NULL && found_symbol == NULL;
}
}
+ if (objfile->separate_debug_objfile)
+ return lookup_global_symbol_from_objfile (objfile->separate_debug_objfile,
+ name, linkage_name, domain,
+ symtab);
+
return NULL;
}