aboutsummaryrefslogtreecommitdiff
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
commitd3e819815acd7b1b075bc0c7029dc07dd935f3d2 (patch)
treefdca9cfcdf4030c9fff3ac75a121918ce1be236a /gdb/objfiles.c
parent8fb8eb5ca4ca4c7a1410659a289e1a91c380832d (diff)
downloadgdb-d3e819815acd7b1b075bc0c7029dc07dd935f3d2.zip
gdb-d3e819815acd7b1b075bc0c7029dc07dd935f3d2.tar.gz
gdb-d3e819815acd7b1b075bc0c7029dc07dd935f3d2.tar.bz2
* 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 59ab632..b10f803 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)