diff options
author | Daniel Jacobowitz <dan@debian.org> | 2007-12-18 16:02:54 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2007-12-18 16:02:54 +0000 |
commit | 6a7787cf0a478d4d7509adad269579a82b6ddd88 (patch) | |
tree | a85e0a70ff4fbddea471dfed4b53ff6dd4a4e058 /gdb/minsyms.c | |
parent | c97c686fd07327597e580fb6562c110ee4316e1a (diff) | |
download | gdb-6a7787cf0a478d4d7509adad269579a82b6ddd88.tar.gz |
* 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 48507976137..cc1eed65836 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; |