aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-09-25 00:15:30 +0000
committerDoug Evans <dje@google.com>2013-09-25 00:15:30 +0000
commit020f703635b9a8dcc29dce41a682b99bde1e8c74 (patch)
tree12b3806d71fd6e2e4336cad4740d966d4a1519e1 /gdb/objfiles.c
parent9d26852e6da93f8c478972ac99f09d1692deabb1 (diff)
downloadgdb-020f703635b9a8dcc29dce41a682b99bde1e8c74.zip
gdb-020f703635b9a8dcc29dce41a682b99bde1e8c74.tar.gz
gdb-020f703635b9a8dcc29dce41a682b99bde1e8c74.tar.bz2
* objfiles.c (free_objfile): Move comment.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r--gdb/objfiles.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index 6585c3f..59ab632 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -645,8 +645,6 @@ free_objfile (struct objfile *objfile)
clear_current_source_symtab_and_line ();
}
- /* The last thing we do is free the objfile struct itself. */
-
if (objfile->global_psymbols.list)
xfree (objfile->global_psymbols.list);
if (objfile->static_psymbols.list)
@@ -660,6 +658,7 @@ free_objfile (struct objfile *objfile)
/* Rebuild section map next time we need it. */
get_objfile_pspace_data (objfile->pspace)->section_map_dirty = 1;
+ /* The last thing we do is free the objfile struct itself. */
xfree (objfile);
}