New debugging flag --trace-notbelow=<number>, to stop --trace-codegen=
spewing out tons of unwanted stuff before some desired point.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3169 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_main.c b/coregrind/vg_main.c
index 598b642..c98df51 100644
--- a/coregrind/vg_main.c
+++ b/coregrind/vg_main.c
@@ -1480,6 +1480,7 @@
Bool VG_(clo_profile) = False;
Bool VG_(clo_bbprofile) = False;
UChar VG_(clo_trace_codegen) = 0; // 00000000b
+Int VG_(clo_trace_notbelow) = 0;
Bool VG_(clo_trace_syscalls) = False;
Bool VG_(clo_trace_signals) = False;
Bool VG_(clo_trace_symtab) = False;
@@ -1555,6 +1556,7 @@
" --bbprofile=no|yes profile bbs? [no]\n"
" --branchpred=yes|no generate branch prediction hints [no]\n"
" --trace-codegen=<XXXXXXXX> show generated code? (X = 0|1) [00000000]\n"
+" --trace-notbelow=<number> only show BBs above <number> [0]\n"
" --trace-syscalls=no|yes show all system calls? [no]\n"
" --trace-signals=no|yes show signal handling details? [no]\n"
" --trace-symtab=no|yes show symbol table details? [no]\n"
@@ -1841,6 +1843,8 @@
}
}
+ else VG_NUM_CLO ("--trace-notbelow", VG_(clo_trace_notbelow))
+
else if (VG_CLO_STREQ(arg, "--trace-pthread=none"))
VG_(clo_trace_pthread_level) = 0;
else if (VG_CLO_STREQ(arg, "--trace-pthread=some"))