diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2005-03-28 21:38:44 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2005-03-28 21:38:44 +0000 |
commit | fd0854ffd71f437c5e7d44b6f60361faf0bd6d15 (patch) | |
tree | 35b2cad6f2cc4e9a78429f91fc6dbed9b69c1f95 /dump.c | |
parent | 1af60bcb794810018aa77e3f4c7d128153067785 (diff) | |
download | perl-fd0854ffd71f437c5e7d44b6f60361faf0bd6d15.tar.gz |
expand -DDEBUG_LEAKING_SCALARS to instrument the creation of each SV
p4raw-id: //depot/perl@24088
Diffstat (limited to 'dump.c')
-rw-r--r-- | dump.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1203,6 +1203,14 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo sv_catpv(d, ")"); s = SvPVX(d); +#ifdef DEBUG_LEAKING_SCALARS + Perl_dump_indent(aTHX_ level, file, "ALLOCATED at %s:%d %s %s%s\n", + sv->sv_debug_file ? sv->sv_debug_file : "(unknown)", + sv->sv_debug_line, + sv->sv_debug_inpad ? "for" : "by", + sv->sv_debug_optype ? PL_op_name[sv->sv_debug_optype]: "(none)", + sv->sv_debug_cloned ? " (cloned)" : ""); +#endif Perl_dump_indent(aTHX_ level, file, "SV = "); switch (type) { case SVt_NULL: |