Skip to contentSkip to conversation

Enhance debug information.

PATCH New Christopher Li 1 participant 1 message Dec 15, 2006 Sparse checker

lore
Share & tools
lore

Christopher Li

author maintainer
#0 lore raw

PATCH 1/1 Enhance debug information.

I found it very useful for debug_symbol() to show the builtin type name. I add "int_type" and "fp_type" to the list as well.

symbol.h +2 -0
Index: sparse/symbol.h
===================================================================
@@ -239,6 +239,8 @@ extern void bind_symbol(struct symbol *,
 extern struct symbol *examine_symbol_type(struct symbol *);
 extern void examine_simple_symbol_type(struct symbol *);
 extern const char *show_typename(struct symbol *sym);
+extern const char* builtin_typename(struct symbol *sym);
+extern const char* builtin_ctypename(struct ctype *ctype);
 
 extern void debug_symbol(struct symbol *);
 extern void merge_type(struct symbol *sym, struct symbol *base_type);
show-parse.c +67 -45

138 lines not on this page · raw message