diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-12-15 13:10:50 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-12-15 13:10:50 +0000 |
commit | 36e4d0683b478479f9eb07bef34a21fd8007c3ef (patch) | |
tree | 6a02e90e82db078c4bee42779dd6f8e9cb541506 /gdb/coffread.c | |
parent | 6b00ac5ace8dd16b5dcf29161dfe18844e538afd (diff) | |
download | gdb-36e4d0683b478479f9eb07bef34a21fd8007c3ef.zip gdb-36e4d0683b478479f9eb07bef34a21fd8007c3ef.tar.gz gdb-36e4d0683b478479f9eb07bef34a21fd8007c3ef.tar.bz2 |
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/coffread.c')
-rw-r--r-- | gdb/coffread.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c index 56ed5ae..398e61c 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -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 |