aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Li <sparse@chrisli.org>2007-02-23 14:42:08 -0800
committerJosh Triplett <josh@freedesktop.org>2007-02-25 14:53:11 -0800
commit9a3554410fba883c54d6e5cd141e2fd3d03cb3dd (patch)
treef97250e221ed4196acc8301c2b948206b5bce52d /sparse.c
parentFix a bug that match_idents forget to end with NULL (diff)
downloadsparse-9a3554410fba883c54d6e5cd141e2fd3d03cb3dd.tar.gz
sparse-9a3554410fba883c54d6e5cd141e2fd3d03cb3dd.tar.bz2
sparse-9a3554410fba883c54d6e5cd141e2fd3d03cb3dd.zip
Adding debug option for showing the linearized instruction.
Signed-Off-By: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'sparse.c')
-rw-r--r--sparse.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sparse.c b/sparse.c
index 6c06988..108eafb 100644
--- a/sparse.c
+++ b/sparse.c
@@ -264,8 +264,12 @@ static void check_symbols(struct symbol_list *list)
expand_symbol(sym);
ep = linearize_symbol(sym);
- if (ep)
+ if (ep) {
+ if (dbg_entry)
+ show_entry(ep);
+
check_context(ep);
+ }
} END_FOR_EACH_PTR(sym);
}