This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] objfiles.c (allocate_objfile): Move comment to better place.


Hi.
This patch just moves a comment to a better place.
The objfile's name is no longer from the bfd,
so the comment is out of place.

2013-09-25  Doug Evans  <dje@google.com>

	* objfiles.c (allocate_objfile): Move comment to better place.

Index: objfiles.c
===================================================================
RCS file: /cvs/src/src/gdb/objfiles.c,v
retrieving revision 1.167
diff -u -p -r1.167 objfiles.c
--- objfiles.c	25 Sep 2013 00:15:30 -0000	1.167
+++ objfiles.c	26 Sep 2013 01:07:54 -0000
@@ -280,10 +280,6 @@ allocate_objfile (bfd *abfd, const char 
 
   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 
   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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]