X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=dump.c;h=bc1ba58ab1952fd08070677e88371e3458f6ed89;hb=c06820fb26255c7ec0b8366ded45c6d7f2caf6b1;hp=70efde4090547a2269631b7fd5208f09c1edd6fd;hpb=9b38784150c0aca5746105b5f00bfc653322bcd1;p=p5sagit%2Fp5-mst-13.2.git diff --git a/dump.c b/dump.c index 70efde4..bc1ba58 100644 --- a/dump.c +++ b/dump.c @@ -1566,12 +1566,15 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo s = SvPVX_const(d); #ifdef DEBUG_LEAKING_SCALARS - Perl_dump_indent(aTHX_ level, file, "ALLOCATED at %s:%d %s %s%s\n", + Perl_dump_indent(aTHX_ level, file, + "ALLOCATED at %s:%d %s %s%s; serial %"UVuf"\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)" : ""); + sv->sv_debug_cloned ? " (cloned)" : "", + sv->sv_debug_serial + ); #endif Perl_dump_indent(aTHX_ level, file, "SV = "); if (type < SVt_LAST) { @@ -1587,7 +1590,8 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo return; } if ((type >= SVt_PVIV && type != SVt_PVAV && type != SVt_PVHV - && type != SVt_PVCV && !isGV_with_GP(sv) && type != SVt_PVFM) + && type != SVt_PVCV && !isGV_with_GP(sv) && type != SVt_PVFM + && type != SVt_PVIO) || (type == SVt_IV && !SvROK(sv))) { if (SvIsUV(sv) #ifdef PERL_OLD_COPY_ON_WRITE