* objfiles.c (allocate_objfile): Move comment to better place.
This commit is contained in:
parent
8fb8eb5ca4
commit
d3e819815a
|
@ -1,5 +1,7 @@
|
||||||
2013-09-25 Doug Evans <dje@google.com>
|
2013-09-25 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* objfiles.c (allocate_objfile): Move comment to better place.
|
||||||
|
|
||||||
New option "set debug symfile on".
|
New option "set debug symfile on".
|
||||||
* NEWS: Mention "set debug symfile".
|
* NEWS: Mention "set debug symfile".
|
||||||
* Makefile.in (SFILES): Add symfile-debug.c.
|
* Makefile.in (SFILES): Add symfile-debug.c.
|
||||||
|
|
|
@ -280,10 +280,6 @@ allocate_objfile (bfd *abfd, const char *name, int flags)
|
||||||
|
|
||||||
objfile_alloc_data (objfile);
|
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)
|
if (name == NULL)
|
||||||
{
|
{
|
||||||
gdb_assert (abfd == 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,
|
objfile->original_name = obstack_copy0 (&objfile->objfile_obstack, name,
|
||||||
strlen (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;
|
objfile->obfd = abfd;
|
||||||
gdb_bfd_ref (abfd);
|
gdb_bfd_ref (abfd);
|
||||||
if (abfd != NULL)
|
if (abfd != NULL)
|
||||||
|
|
Loading…
Reference in New Issue