summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorglasser@tang-eleven-seventy-nine.mit.edu <glasser@tang-eleven-seventy-nine.mit.edu>2005-04-20 19:28:14 +0000
committerDave Mitchell <davem@fdisolutions.com>2005-04-20 21:47:40 +0000
commitf2a7f2982c10dbcfc2084d281af6ad8b959d5fb9 (patch)
treea7074d1d39356ac19f8d88c5f86c5bd529a64384 /mg.c
parent4944113acaf494b4518ba93648e0a4276c34a175 (diff)
downloadperl-f2a7f2982c10dbcfc2084d281af6ad8b959d5fb9.tar.gz
[perl #35059] [PATCH] caller() skips frames (such as eval() frames) if $^P set
From: glasser@tang-eleven-seventy-nine.mit.edu (via RT) <perlbug-followup@perl.org> Message-Id: <rt-3.0.11-35059-111134.0.304511316819145@perl.org> improved version of change 21842 that copes with glob DB::sub existing but &DB::sub not existing. p4raw-id: //depot/perl@24265
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mg.c b/mg.c
index 9af49212fd..af52790175 100644
--- a/mg.c
+++ b/mg.c
@@ -2162,8 +2162,7 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
break;
case '\020': /* ^P */
PL_perldb = SvIOK(sv) ? SvIVX(sv) : sv_2iv(sv);
- if ((PERLDB_SUB || PERLDB_LINE || PERLDB_SUBLINE || PERLDB_ASSERTION)
- && !PL_DBsingle)
+ if (PL_perldb && !PL_DBsingle)
init_debugger();
break;
case '\024': /* ^T */