diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-12-18 16:02:54 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-12-18 16:02:54 +0000 |
commit | 56e3f43cb65608a19ca9005d77c96a66e6e4d7cb (patch) | |
tree | df635cc85d9d5a0c193b7b611afe0eac0dceaf1c /gdb/minsyms.c | |
parent | 8b4ed4273f44bf259e717783004ede8d5bb87210 (diff) | |
download | gdb-56e3f43cb65608a19ca9005d77c96a66e6e4d7cb.zip gdb-56e3f43cb65608a19ca9005d77c96a66e6e4d7cb.tar.gz gdb-56e3f43cb65608a19ca9005d77c96a66e6e4d7cb.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r-- | gdb/minsyms.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c index 4850797..cc1eed6 100644 --- a/gdb/minsyms.c +++ b/gdb/minsyms.c @@ -176,7 +176,8 @@ lookup_minimal_symbol (const char *name, const char *sfile, 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. */ @@ -274,7 +275,8 @@ lookup_minimal_symbol_text (const char *name, struct objfile *objf) 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; @@ -330,7 +332,8 @@ lookup_minimal_symbol_solib_trampoline (const char *name, 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; |