diff options
author | Doug Evans <dje@google.com> | 2013-09-26 01:08:35 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2013-09-26 01:08:35 +0000 |
commit | 224b06cf27d937a9174017bc49f8dc3d033f237e (patch) | |
tree | 123f8e3b25729e5d066f038cda2570afd442f599 /gdb/objfiles.c | |
parent | d614be71abc90e4608905cc82f636dcdf0416c9f (diff) | |
download | gdb-224b06cf27d937a9174017bc49f8dc3d033f237e.tar.gz |
* objfiles.c (allocate_objfile): Move comment to better place.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 8 |
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) |