summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-02-02 14:35:51 +0000
committerNicholas Clark <nick@ccl4.org>2007-02-02 14:35:51 +0000
commiteff3c707b45221807117761fc9b63fdb1798af5e (patch)
tree14760e6ebb74b9ee145726ef1dda1bff48dab9c5 /dump.c
parent1a6108908b085da4d14ad0cdf8549f193a6fb877 (diff)
downloadperl-eff3c707b45221807117761fc9b63fdb1798af5e.tar.gz
Better dump reporting of "PVBM"s.
p4raw-id: //depot/perl@30091
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/dump.c b/dump.c
index b8b15dedc2..85d6c1c3fa 100644
--- a/dump.c
+++ b/dump.c
@@ -1525,7 +1525,8 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo
Perl_dump_indent(aTHX_ level, file, " COP_HIGH = %"UVuf"\n",
(UV) COP_SEQ_RANGE_HIGH(sv));
} else if ((type >= SVt_PVNV && type != SVt_PVAV && type != SVt_PVHV
- && type != SVt_PVCV && type != SVt_PVFM && !isGV_with_GP(sv))
+ && type != SVt_PVCV && type != SVt_PVFM && !isGV_with_GP(sv)
+ && !SvVALID(sv))
|| type == SVt_NV) {
STORE_NUMERIC_LOCAL_SET_STANDARD();
/* %Vg doesn't work? --jhi */
@@ -1781,6 +1782,12 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo
do_sv_dump(level+1, file, LvTARG(sv), nest+1, maxnest,
dumpops, pvlim);
}
+ if (SvVALID(sv)) {
+ Perl_dump_indent(aTHX_ level, file, " FLAGS = %u\n", (U8)BmFLAGS(sv));
+ Perl_dump_indent(aTHX_ level, file, " RARE = %u\n", (U8)BmRARE(sv));
+ Perl_dump_indent(aTHX_ level, file, " PREVIOUS = %"UVuf"\n", BmPREVIOUS(sv));
+ Perl_dump_indent(aTHX_ level, file, " USEFUL = %"IVdf"\n", BmUSEFUL(sv));
+ }
if (!isGV_with_GP(sv))
break;
Perl_dump_indent(aTHX_ level, file, " NAME = \"%s\"\n", GvNAME(sv));