aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-11-08 10:43:23 -0800
committerDoug Evans <dje@google.com>2013-11-08 10:49:44 -0800
commitdb0fec5c4881dc2e65eeba47cd574379c03a4cf4 (patch)
tree1fb58d55d854ef64f7e9c1587d4215c0859ba5d7 /gdb/symtab.h
parente78e02e6d91ee2ec3c3d1c560366089dfbafab2c (diff)
downloadgdb-db0fec5c4881dc2e65eeba47cd574379c03a4cf4.zip
gdb-db0fec5c4881dc2e65eeba47cd574379c03a4cf4.tar.gz
gdb-db0fec5c4881dc2e65eeba47cd574379c03a4cf4.tar.bz2
Change "set debug symtab-create" to take a verbosity level.
* NEWS: Mention that "set debug symtab-create" now accepts a verbosity level. * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary to set the symtab's primary flag. * jit.c (finalize_symtab): Ditto. * mdebugread.c (psymtab_to_symtab_1): Ditto. * symfile.c (allocate_symtab): Only print debugging messages for symtab_create_debug levels 2 and higher. * symtab.c (symtab_create_debug): Change type to unsigned int. (set_symtab_primary): New function. (_initialize_symtab): Change "set debug symtab-create" to a zuinteger option. * symtab.h (set_symtab_primary): Declare. (symtab_create_debug): Update decl. doc/ * gdb.texinfo (Debugging Output): Update text for "set debug symtab-create".
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 3d3c05c..7cc6667 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -941,6 +941,9 @@ struct symtab
#define LINETABLE(symtab) (symtab)->linetable
#define SYMTAB_PSPACE(symtab) (symtab)->objfile->pspace
+/* Call this to set the "primary" field in struct symtab. */
+extern void set_symtab_primary (struct symtab *, int primary);
+
typedef struct symtab *symtab_ptr;
DEF_VEC_P (symtab_ptr);
@@ -1335,7 +1338,7 @@ void fixup_section (struct general_symbol_info *ginfo,
struct objfile *lookup_objfile_from_block (const struct block *block);
-extern int symtab_create_debug;
+extern unsigned int symtab_create_debug;
extern int basenames_may_differ;