diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-01-14 21:09:05 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-01-14 21:09:05 +0000 |
commit | 61f0d76280d963a9ecf3a3a525dae7ac21050636 (patch) | |
tree | 59dd35b2e11cb7b01e14b2ed74254c62d4b07a9b /gdb/symtab.c | |
parent | 06a6f27066c695efbde2773efafd2be68f7a7d1c (diff) | |
download | gdb-61f0d76280d963a9ecf3a3a525dae7ac21050636.zip gdb-61f0d76280d963a9ecf3a3a525dae7ac21050636.tar.gz gdb-61f0d76280d963a9ecf3a3a525dae7ac21050636.tar.bz2 |
gdb/
* solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
target_section. Find SECT in current_target_sections, gdb_assert it.
(elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
New variable abfd.
* symtab.c (lookup_objfile_from_block): Return the binary file instead
of separate debug info file.
gdb/testsuite/
* gdb.base/break-interp.exp (test_core): New proc.
(test_ld): Call it.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 7f5dabd..426326d 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -1470,7 +1470,12 @@ lookup_objfile_from_block (const struct block *block) /* Go through SYMTABS. */ ALL_SYMTABS (obj, s) if (block == BLOCKVECTOR_BLOCK (BLOCKVECTOR (s), GLOBAL_BLOCK)) - return obj; + { + if (obj->separate_debug_objfile_backlink) + obj = obj->separate_debug_objfile_backlink; + + return obj; + } return NULL; } |