summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-03-13 12:39:42 +0000
committerDavid Mitchell <davem@iabyn.com>2015-03-13 12:39:42 +0000
commitdc6240c9d6df97879ecb94e74011463d8dbdc837 (patch)
tree90d6fdc07f86e362a0495477397b9866cfe4f6f5 /dist
parentdc3c1c7079dd7767e3d45a651b4fac4a932d25ed (diff)
downloadperl-dc6240c9d6df97879ecb94e74011463d8dbdc837.tar.gz
make perl -Dt display padnames with sort blocks
When a sort block (as opposed to sort sub) is executed, a new stackinfo is pushed with a single CXt_NULL on top. Since S_deb_curcv() only examines the *current* CX stack looking for the current running CV, it fails to find it in this case and returns null. This means that on threaded builds you get things like: $ perl -Dt -e'my $x; @a=sort { $x } 1,2' ... (-e:1) padsv([1]) where it can't find a pad to look up the name of the lexical at targ 1. This commit makes S_deb_curcv() continue to the previous CX stack when it finds it's on a PERLSI_SORT stackinfo. The output from the above is now: (-e:1) padsv($x)
Diffstat (limited to 'dist')
0 files changed, 0 insertions, 0 deletions