aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-11-26 14:39:08 -0700
committerTom Tromey <tromey@redhat.com>2013-12-06 12:14:03 -0700
commit7580e9176779460e031d82aa1cd5790db53ad27b (patch)
treef9838d94c1d7269c2c92c25e77028269e843586f
parent53e0e56d645d638fdbbf69553e6d323e8b29cbae (diff)
downloadbinutils-7580e9176779460e031d82aa1cd5790db53ad27b.zip
binutils-7580e9176779460e031d82aa1cd5790db53ad27b.tar.gz
binutils-7580e9176779460e031d82aa1cd5790db53ad27b.tar.bz2
update free_objfile comment
The introductory comment to free_objfile is obsolete. This patch fixes it by removing all the obsolete bits. 2013-12-06 Tom Tromey <tromey@redhat.com> * objfiles.c (free_objfile): Update comment.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/objfiles.c16
2 files changed, 5 insertions, 15 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c5cd9ba..464601a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2013-12-06 Tom Tromey <tromey@redhat.com>
+ * objfiles.c (free_objfile): Update comment.
+
+2013-12-06 Tom Tromey <tromey@redhat.com>
+
* objfiles.h (objfile_to_front): Remove.
* objfiles.c (objfile_to_front): Remove.
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index 6fb08ea..2960ff9 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -520,21 +520,7 @@ free_objfile_separate_debug (struct objfile *objfile)
}
}
-/* Destroy an objfile and all the symtabs and psymtabs under it. Note
- that as much as possible is allocated on the objfile_obstack
- so that the memory can be efficiently freed.
-
- Things which we do NOT free because they are not in malloc'd memory
- or not in memory specific to the objfile include:
-
- objfile -> sf
-
- FIXME: If the objfile is using reusable symbol information (via mmalloc),
- then we need to take into account the fact that more than one process
- may be using the symbol information at the same time (when mmalloc is
- extended to support cooperative locking). When more than one process
- is using the mapped symbol info, we need to be more careful about when
- we free objects in the reusable area. */
+/* Destroy an objfile and all the symtabs and psymtabs under it. */
void
free_objfile (struct objfile *objfile)