aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-04-04 14:29:27 +0000
committerTom Tromey <tromey@redhat.com>2011-04-04 14:29:27 +0000
commit554d387d4cf36d63f004a5a10bee8d180a7af4e0 (patch)
tree5196960decc5f2be1f5c41a24836512e88641c0f /gdb/symtab.h
parentd4d4db8a722f18a2abfa771a77689c5c1efae002 (diff)
downloadgdb-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/symtab.h')
-rw-r--r--gdb/symtab.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index a1c61f0..1e3856e 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -817,11 +817,11 @@ struct symtab
for automated testing of gdb but may also be information that is
useful to the user. */
- char *debugformat;
+ const char *debugformat;
/* String of producer version information. May be zero. */
- char *producer;
+ const char *producer;
/* Full name of file as found by searching the source path.
NULL if not yet known. */