summaryrefslogtreecommitdiff
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-09-26 01:08:35 +0000
committerDoug Evans <dje@google.com>2013-09-26 01:08:35 +0000
commit224b06cf27d937a9174017bc49f8dc3d033f237e (patch)
tree123f8e3b25729e5d066f038cda2570afd442f599 /gdb/objfiles.c
parentd614be71abc90e4608905cc82f636dcdf0416c9f (diff)
downloadgdb-224b06cf27d937a9174017bc49f8dc3d033f237e.tar.gz
* objfiles.c (allocate_objfile): Move comment to better place.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r--gdb/objfiles.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index 59ab632f737..b10f803540f 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -280,10 +280,6 @@ allocate_objfile (bfd *abfd, const char *name, int flags)
objfile_alloc_data (objfile);
- /* Update the per-objfile information that comes from the bfd, ensuring
- that any data that is reference is saved in the per-objfile data
- region. */
-
if (name == NULL)
{
gdb_assert (abfd == NULL);
@@ -292,6 +288,10 @@ allocate_objfile (bfd *abfd, const char *name, int flags)
objfile->original_name = obstack_copy0 (&objfile->objfile_obstack, name,
strlen (name));
+ /* Update the per-objfile information that comes from the bfd, ensuring
+ that any data that is reference is saved in the per-objfile data
+ region. */
+
objfile->obfd = abfd;
gdb_bfd_ref (abfd);
if (abfd != NULL)