* xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.

* symtab.h (struct symtab) <producer, debugformat>: Now const.
	* symmisc.c (free_symtab): Don't free debugformat.
	* buildsym.h (struct subfile) <producer, debugformat>: Now const.
	(record_debugformat, record_producer): Document.
	* buildsym.c (end_symtab): Don't save debugformat and producer
	names on obstack.
	(end_symtab): Don't free debugformat and producer fields.
	(record_debugformat): Don't call xstrdup.
	(record_producer): Likewise.
This commit is contained in:
Tom Tromey
2011-04-04 14:29:27 +00:00
parent d4d4db8a72
commit 554d387d4c
6 changed files with 30 additions and 36 deletions

View File

@@ -115,8 +115,6 @@ free_symtab (struct symtab *s)
xfree (s->line_charpos);
if (s->fullname != NULL)
xfree (s->fullname);
if (s->debugformat != NULL)
xfree (s->debugformat);
xfree (s);
}