summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-01-08 17:53:29 +0000
committerDavid Mitchell <davem@iabyn.com>2010-01-08 17:53:29 +0000
commitcbe56f1dc5efa2a32e6943a97f6928e7eef1b1f6 (patch)
treebcf17661299d5b537d09395e8abc6b58d7bcaff2 /dump.c
parentaf9379e9ed4daaed65ba42baa492afc842917dd5 (diff)
downloadperl-cbe56f1dc5efa2a32e6943a97f6928e7eef1b1f6.tar.gz
include sv_debug_serial field in debugging output
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/dump.c b/dump.c
index 54999adf55..bc1ba58ab1 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) {