[RFA] remove free_contents

Daniel Jacobowitz drow@false.org
Thu Apr 3 18:58:00 GMT 2008


On Thu, Apr 03, 2008 at 10:54:48AM -0700, Doug Evans wrote:
> Either the comment is incomplete (i.e. some names are not allocated
> on an objfile_obstack), or the code is wrong (or in this case, outdated).

Both possible, I think, as long as the name has lifetime at least as
long as the objfile_obstack.  It could come from mmaped dwarf
sections, for instance (if we get around to making that work... I see
that conversation on a patch to do this trailed off).

> 2008-04-03  Doug Evans  <dje@sebabeach.org>
> 
> 	* symtab.h (enum free_code): Delete free_contents, unused.
> 	* symmisc.c (free_symtab_block): Delete.
> 	(free_symtab, case free_code): Delete.

OK, thanks.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list