3 * Copyright (c) 1991-1997, Larry Wall
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Artistic License, as specified in the README file.
14 * "Away now, Shadowfax! Run, greatheart, run as you have never run before!
15 * Now we are come to the lands where you were foaled, and every stone you
16 * know. Run now! Hope is in speed!" --Gandalf
25 while ( op = (*op->op_ppaddr)(ARGS) ) ;
33 dEXT char **watchaddr = 0;
36 static void debprof _((OP*o));
38 #endif /* DEBUGGING */
46 warn("NULL OP IN RUN");
52 if (watchaddr != 0 && *watchaddr != watchok)
53 PerlIO_printf(Perl_debug_log, "WARNING: %lx changed from %lx to %lx\n",
54 (long)watchaddr, (long)watchok, (long)*watchaddr);
59 } while ( op = (*op->op_ppaddr)(ARGS) );
64 return runops_standard();
65 #endif /* DEBUGGING */
73 deb("%s", op_name[o->op_type]);
76 PerlIO_printf(Perl_debug_log, "(%s)", SvPEEK(cSVOPo->op_sv));
82 gv_fullname3(sv, cGVOPo->op_gv, Nullch);
83 PerlIO_printf(Perl_debug_log, "(%s)", SvPV(sv, na));
87 PerlIO_printf(Perl_debug_log, "(NULL)");
92 PerlIO_printf(Perl_debug_log, "\n");
93 #endif /* DEBUGGING */
103 PerlIO_printf(Perl_debug_log, "WATCHING, %lx is currently %lx\n",
104 (long)watchaddr, (long)watchok);
105 #endif /* DEBUGGING */
113 New(000, profiledata, MAXO, U32);
114 ++profiledata[o->op_type];
116 #endif /* DEBUGGING */
125 for (i = 0; i < MAXO; i++) {
127 PerlIO_printf(Perl_debug_log,
128 "%u\t%lu\n", i, (unsigned long)profiledata[i]);
130 #endif /* DEBUGGING */