diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-02-02 14:35:51 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-02-02 14:35:51 +0000 |
commit | eff3c707b45221807117761fc9b63fdb1798af5e (patch) | |
tree | 14760e6ebb74b9ee145726ef1dda1bff48dab9c5 /dump.c | |
parent | 1a6108908b085da4d14ad0cdf8549f193a6fb877 (diff) | |
download | perl-eff3c707b45221807117761fc9b63fdb1798af5e.tar.gz |
Better dump reporting of "PVBM"s.
p4raw-id: //depot/perl@30091
Diffstat (limited to 'dump.c')
-rw-r--r-- | dump.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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)); |