Author: dds
Date: Wed Sep 16 06:29:23 2009
New Revision: 197245
URL: http://svn.freebsd.org/changeset/base/197245

Log:
  Add a couple of debugging statements.

Modified:
  head/lib/libc/regex/engine.c

Modified: head/lib/libc/regex/engine.c
==============================================================================
--- head/lib/libc/regex/engine.c        Wed Sep 16 05:33:15 2009        
(r197244)
+++ head/lib/libc/regex/engine.c        Wed Sep 16 06:29:23 2009        
(r197245)
@@ -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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to