diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-01-31 12:14:05 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-01-31 12:14:05 +0000 |
commit | 0cd10f52059c60990d7cf337e190bb16778b8c4a (patch) | |
tree | d879999ae0a994759c4ece3ae227397ddade7763 | |
parent | bcdf74043c1fd4b60b7764f5cd7d87525cf77e74 (diff) | |
download | perl-0cd10f52059c60990d7cf337e190bb16778b8c4a.tar.gz |
You can't have special blocks if the subroutine has an "anonymous"
name for the debugger, so don't bother checking.
p4raw-id: //depot/perl@30085
-rw-r--r-- | op.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -5368,8 +5368,6 @@ Perl_newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block) } if (name || aname) { - const char * const tname = (name ? name : aname); - if (PERLDB_SUBLINE && PL_curstash != PL_debstash) { SV * const sv = newSV(0); SV * const tmpstr = sv_newmortal(); @@ -5395,8 +5393,8 @@ Perl_newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block) } } - if (!PL_error_count) - process_special_blocks(tname, gv, cv); + if (name && !PL_error_count) + process_special_blocks(name, gv, cv); } done: |