From bca3476acdbddfc6fc9fb254312dfb30ff71da37 Mon Sep 17 00:00:00 2001 From: Diomidis Spinellis Date: Wed, 16 Sep 2009 06:29:23 +0000 Subject: [PATCH] Add a couple of debugging statements. --- lib/libc/regex/engine.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/libc/regex/engine.c b/lib/libc/regex/engine.c index a44511b8d56..4c3f5550aaa 100644 --- a/lib/libc/regex/engine.c +++ b/lib/libc/regex/engine.c @@ -247,6 +247,8 @@ matcher(struct re_guts *g, if (g->moffset > -1) start = ((dp - g->moffset) < start) ? start : dp - g->moffset; + SP("mloop", m->st, *start); + /* this loop does only one repetition except for backrefs */ for (;;) { endp = fast(m, start, stop, gf, gl); @@ -787,6 +789,7 @@ fast( struct match *m, CLEAR(st); SET1(st, startst); + SP("fast", st, *p); st = step(m->g, startst, stopst, st, NOTHING, st); ASSIGN(fresh, st); SP("start", st, *p);