aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-02-21 06:55:36 +0000
committerDoug Evans <dje@google.com>2012-02-21 06:55:36 +0000
commitd82ea6a8a930ceb38b2947d07a3cab5fba78f27c (patch)
treeb421bdd619027dee11f2ce957da8e8418983c9c6 /gdb/symfile.c
parent10c07b7ec2699ab2dcc4cdb2283670f0e42e7fc5 (diff)
downloadgdb-d82ea6a8a930ceb38b2947d07a3cab5fba78f27c.zip
gdb-d82ea6a8a930ceb38b2947d07a3cab5fba78f27c.tar.gz
gdb-d82ea6a8a930ceb38b2947d07a3cab5fba78f27c.tar.bz2
* objfiles.c (add_to_objfile_sections): Remove outdated comments.
Rename objfile_p_char parameter to objfilep. (build_objfile_section_table): Result is now void. All callers updated. * objfiles.h (struct objfile): Tweak comments, whitespace. (build_objfile_section_table): Update.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 11ddfe8..ad46748 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -2605,14 +2605,9 @@ reread_symbols (void)
/* obstack_init also initializes the obstack so it is
empty. We could use obstack_specify_allocation but
- gdb_obstack.h specifies the alloc/dealloc
- functions. */
+ gdb_obstack.h specifies the alloc/dealloc functions. */
obstack_init (&objfile->objfile_obstack);
- if (build_objfile_section_table (objfile))
- {
- error (_("Can't find the file sections in `%s': %s"),
- objfile->name, bfd_errmsg (bfd_get_error ()));
- }
+ build_objfile_section_table (objfile);
terminate_minimal_symbol_table (objfile);
/* We use the same section offsets as from last time. I'm not