aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/buildsym.h')
-rw-r--r--gdb/buildsym.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/gdb/buildsym.h b/gdb/buildsym.h
index 37fe69c..ce1a9fc 100644
--- a/gdb/buildsym.h
+++ b/gdb/buildsym.h
@@ -70,8 +70,8 @@ struct subfile
struct linetable *line_vector;
int line_vector_length;
enum language language;
- char *producer;
- char *debugformat;
+ const char *producer;
+ const char *debugformat;
struct symtab *symtab;
};
@@ -292,7 +292,15 @@ extern void record_pending_block (struct objfile *objfile,
struct block *block,
struct pending_block *opblock);
-extern void record_debugformat (char *format);
+/* Record the name of the debug format in the current pending symbol
+ table. FORMAT must be a string with a lifetime at least as long as
+ the symtab's objfile. */
+
+extern void record_debugformat (const char *format);
+
+/* Record the name of the debuginfo producer (usually the compiler) in
+ the current pending symbol table. PRODUCER must be a string with a
+ lifetime at least as long as the symtab's objfile. */
extern void record_producer (const char *producer);