diff options
author | Tom Tromey <tromey@redhat.com> | 2011-04-04 14:29:27 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-04-04 14:29:27 +0000 |
commit | 554d387d4cf36d63f004a5a10bee8d180a7af4e0 (patch) | |
tree | 5196960decc5f2be1f5c41a24836512e88641c0f /gdb/xcoffread.c | |
parent | d4d4db8a722f18a2abfa771a77689c5c1efae002 (diff) | |
download | gdb-554d387d4cf36d63f004a5a10bee8d180a7af4e0.zip gdb-554d387d4cf36d63f004a5a10bee8d180a7af4e0.tar.gz gdb-554d387d4cf36d63f004a5a10bee8d180a7af4e0.tar.bz2 |
* 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/xcoffread.c')
-rw-r--r-- | gdb/xcoffread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 081080c..fd60447 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -944,7 +944,7 @@ read_xcoff_symtab (struct partial_symtab *pst) ((struct coff_symfile_info *) objfile->deprecated_sym_private)->strtbl; char *debugsec = ((struct coff_symfile_info *) objfile->deprecated_sym_private)->debugsec; - char *debugfmt = bfd_xcoff_is_xcoff64 (abfd) ? "XCOFF64" : "XCOFF"; + const char *debugfmt = bfd_xcoff_is_xcoff64 (abfd) ? "XCOFF64" : "XCOFF"; struct internal_syment symbol[1]; union internal_auxent main_aux; |