forked from Imagelibrary/binutils-gdb
Fix NULL objfile's section_offsets dereference during symbol load.
gdb/ChangeLog:
* symfile.c (syms_from_objfile_1): Renames syms_from_objfile.
Remove call to init_entry_point_info. Add OBJFILE's
section_offsets and num_sections initialization. Add note
about entry info in the function documentation.
(syms_from_objfile): New function.
* coffread.c (coff_symfile_init): Remove call to
init_entry_point_info.
* machoread.c (macho_symfile_init): Likewise.
* xcoffread.c(xcoff_symfile_init): Likewise.
This commit is contained in:
@@ -469,8 +469,6 @@ coff_symfile_init (struct objfile *objfile)
|
||||
find this causes a significant slowdown in gdb then we could
|
||||
set it in the debug symbol readers only when necessary. */
|
||||
objfile->flags |= OBJF_REORDERED;
|
||||
|
||||
init_entry_point_info (objfile);
|
||||
}
|
||||
|
||||
/* This function is called for every section; it finds the outer
|
||||
|
||||
Reference in New Issue
Block a user