forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user