summaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-09-02 17:05:04 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-09-02 17:05:04 -0400
commit84064a0bccf8cbabd54b76afee890df880c5d581 (patch)
treedc2f9a99cf197afc87a4e2da4582969072c2c688 /parse.c
parent2741f580ffb6a05f52f0e2b05fa77ff3a15d967f (diff)
downloadbfs-84064a0bccf8cbabd54b76afee890df880c5d581.tar.xz
Implement -D search
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 9bed82c..08d450c 100644
--- a/parse.c
+++ b/parse.c
@@ -755,6 +755,7 @@ static struct expr *parse_debug(struct parser_state *state, int arg1, int arg2)
printf(" exec: Print executed command details.\n");
printf(" opt: Print optimization details.\n");
printf(" rates: Print predicate success rates.\n");
+ printf(" search: Trace the filesystem traversal.\n");
printf(" stat: Trace all stat() calls.\n");
printf(" tree: Print the parse tree.\n");
@@ -768,6 +769,8 @@ static struct expr *parse_debug(struct parser_state *state, int arg1, int arg2)
cmdline->debug |= DEBUG_OPT;
} else if (strcmp(flag, "rates") == 0) {
cmdline->debug |= DEBUG_RATES;
+ } else if (strcmp(flag, "search") == 0) {
+ cmdline->debug |= DEBUG_SEARCH;
} else if (strcmp(flag, "stat") == 0) {
cmdline->debug |= DEBUG_STAT;
} else if (strcmp(flag, "tree") == 0) {