summaryrefslogtreecommitdiff
path: root/cop.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-04-06 20:53:45 +0100
committerDavid Mitchell <davem@iabyn.com>2010-04-06 21:00:44 +0100
commit91e35ba127b7082418836f7f9f428e4d2f9b5745 (patch)
treee0e1e12668a786fcbd5624cfc66da50473a724c7 /cop.h
parent1c98cc53150c48606faf09909b3bb3a4ebdd329f (diff)
downloadperl-91e35ba127b7082418836f7f9f428e4d2f9b5745.tar.gz
more mods to -Dl debugging output
Diffstat (limited to 'cop.h')
-rw-r--r--cop.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/cop.h b/cop.h
index 2d0a4593ec..6c51d73285 100644
--- a/cop.h
+++ b/cop.h
@@ -103,9 +103,8 @@ typedef struct jmpenv JMPENV;
DEBUG_l({ \
int i = 0; JMPENV *p = PL_top_env; \
while (p) { i++; p = p->je_prev; } \
- Perl_deb(aTHX_ "push JUMPLEVEL %d (now %p, was %p) at %s:%d\n",\
- i, (void*)&cur_env, (void*)PL_top_env, \
- __FILE__, __LINE__);}) \
+ Perl_deb(aTHX_ "JUMPENV_PUSH level=%d at %s:%d\n", \
+ i, __FILE__, __LINE__);}) \
cur_env.je_prev = PL_top_env; \
OP_REG_TO_MEM; \
cur_env.je_ret = PerlProc_setjmp(cur_env.je_buf, SCOPE_SAVES_SIGNAL_MASK); \
@@ -120,9 +119,8 @@ typedef struct jmpenv JMPENV;
DEBUG_l({ \
int i = -1; JMPENV *p = PL_top_env; \
while (p) { i++; p = p->je_prev; } \
- Perl_deb(aTHX_ "pop JUMPLEVEL %d (now %p, was %p) at %s:%d\n",\
- i, (void*)cur_env.je_prev, (void*)PL_top_env, \
- __FILE__, __LINE__);}) \
+ Perl_deb(aTHX_ "JUMPENV_POP level=%d at %s:%d\n", \
+ i, __FILE__, __LINE__);}) \
assert(PL_top_env == &cur_env); \
PL_top_env = cur_env.je_prev; \
} STMT_END
@@ -132,9 +130,8 @@ typedef struct jmpenv JMPENV;
DEBUG_l({ \
int i = -1; JMPENV *p = PL_top_env; \
while (p) { i++; p = p->je_prev; } \
- Perl_deb(aTHX_ "JUMP JUMPLEVEL %d (%p) at %s:%d\n", \
- i, (void*)PL_top_env, \
- __FILE__, __LINE__);}) \
+ Perl_deb(aTHX_ "JUMPENV_JUMP(%d) level=%d at %s:%d\n", \
+ (int)v, i, __FILE__, __LINE__);}) \
OP_REG_TO_MEM; \
if (PL_top_env->je_prev) \
PerlProc_longjmp(PL_top_env->je_buf, (v)); \