forked from Imagelibrary/binutils-gdb
* 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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user