summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-01-31 12:14:05 +0000
committerNicholas Clark <nick@ccl4.org>2007-01-31 12:14:05 +0000
commit0cd10f52059c60990d7cf337e190bb16778b8c4a (patch)
treed879999ae0a994759c4ece3ae227397ddade7763
parentbcdf74043c1fd4b60b7764f5cd7d87525cf77e74 (diff)
downloadperl-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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/op.c b/op.c
index ce3261e764..bb2a32cbe8 100644
--- a/op.c
+++ b/op.c
@@ -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: