* 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.
This commit is contained in:
Daniel Jacobowitz
2007-12-18 16:02:54 +00:00
parent 8b4ed4273f
commit 56e3f43cb6
3 changed files with 19 additions and 3 deletions

View File

@ -1,3 +1,11 @@
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> 2007-12-18 Vladimir Prus <vladimir@codesourcery.com>
* mi/mi-main.c (mi_cmd_list_features): Announce * mi/mi-main.c (mi_cmd_list_features): Announce

View File

@ -176,7 +176,8 @@ lookup_minimal_symbol (const char *name, const char *sfile,
objfile != NULL && found_symbol == NULL; objfile != NULL && found_symbol == NULL;
objfile = objfile->next) 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, /* Do two passes: the first over the ordinary hash table,
and the second over the demangled hash table. */ and the second over the demangled hash table. */
@ -274,7 +275,8 @@ lookup_minimal_symbol_text (const char *name, struct objfile *objf)
objfile != NULL && found_symbol == NULL; objfile != NULL && found_symbol == NULL;
objfile = objfile->next) objfile = objfile->next)
{ {
if (objf == NULL || objf == objfile) if (objf == NULL || objf == objfile
|| objf->separate_debug_objfile == objfile)
{ {
for (msymbol = objfile->msymbol_hash[hash]; for (msymbol = objfile->msymbol_hash[hash];
msymbol != NULL && found_symbol == NULL; msymbol != NULL && found_symbol == NULL;
@ -330,7 +332,8 @@ lookup_minimal_symbol_solib_trampoline (const char *name,
objfile != NULL && found_symbol == NULL; objfile != NULL && found_symbol == NULL;
objfile = objfile->next) objfile = objfile->next)
{ {
if (objf == NULL || objf == objfile) if (objf == NULL || objf == objfile
|| objf->separate_debug_objfile == objfile)
{ {
for (msymbol = objfile->msymbol_hash[hash]; for (msymbol = objfile->msymbol_hash[hash];
msymbol != NULL && found_symbol == NULL; msymbol != NULL && found_symbol == NULL;

View File

@ -1363,6 +1363,11 @@ lookup_global_symbol_from_objfile (const struct objfile *objfile,
} }
} }
if (objfile->separate_debug_objfile)
return lookup_global_symbol_from_objfile (objfile->separate_debug_objfile,
name, linkage_name, domain,
symtab);
return NULL; return NULL;
} }