diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-12-15 13:10:49 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-12-15 13:10:49 +0000 |
commit | 26568cf295b418e3d7d4dfa47b1dac5cca6f940a (patch) | |
tree | b8efab5c994ca687ec8da4089f2ddfb23af7a8ae /gdb/machoread.c | |
parent | c978718d0359f330421b037c26b8000350c2f762 (diff) | |
download | gdb-26568cf295b418e3d7d4dfa47b1dac5cca6f940a.tar.gz |
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.
Diffstat (limited to 'gdb/machoread.c')
-rw-r--r-- | gdb/machoread.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/machoread.c b/gdb/machoread.c index 6a6eaa1fa9d..c0e6d909726 100644 --- a/gdb/machoread.c +++ b/gdb/machoread.c @@ -79,7 +79,6 @@ static void macho_symfile_init (struct objfile *objfile) { objfile->flags |= OBJF_REORDERED; - init_entry_point_info (objfile); } /* Add a new OSO to the vector of OSO to load. */ |