diff options
author | Tom Tromey <tromey@redhat.com> | 2011-04-04 14:29:26 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-04-04 14:29:26 +0000 |
commit | 4b11999f6f77676a5913d772e3b29e04fa057047 (patch) | |
tree | 4832594f88b79416c15f0871aa19e1453153775c /gdb/symmisc.c | |
parent | 5d40eb4446a16bb799d79b6a688924132558b0db (diff) | |
download | gdb-4b11999f6f77676a5913d772e3b29e04fa057047.tar.gz |
* 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.
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r-- | gdb/symmisc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c index 66c2f05adb8..79ff355aa77 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -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); } |