summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2003-06-27 23:26:24 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-06-28 15:39:57 +0000
commitb4ab917c3d812d8e61d365bfa48d9bf7675bc113 (patch)
tree03f4a25b24bafea2e817ad09779a5859dc55790b /mg.c
parent1d26cd9ec5ffb2d7823fb6941a001dc8e9a6d1c6 (diff)
downloadperl-b4ab917c3d812d8e61d365bfa48d9bf7675bc113.tar.gz
Two debugging patches.
The first allows to hold symbolic switches in $^D and more generally fixes assignment to $^D. The second one improves the information given by -Dl. Subject: [PATCH] allow $^D = "flags" Date: Fri, 27 Jun 2003 22:26:24 +0100 Message-ID: <20030627212624.GB12887@fdgroup.com> Subject: [PATCH] make -Dl show more scope info From: Dave Mitchell <davem@fdgroup.com> Date: Fri, 27 Jun 2003 23:00:36 +0100 Message-ID: <20030627220036.GC12887@fdgroup.com> p4raw-id: //depot/perl@19870
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index ba576c3707..98ccb34e3d 100644
--- a/mg.c
+++ b/mg.c
@@ -1975,8 +1975,13 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
break;
case '\004': /* ^D */
- PL_debug = (SvIOK(sv) ? SvIVX(sv) : sv_2iv(sv)) | DEBUG_TOP_FLAG;
+#ifdef DEBUGGING
+ s = SvPV_nolen(sv);
+ PL_debug = get_debug_opts(&s) | DEBUG_TOP_FLAG;
DEBUG_x(dump_all());
+#else
+ PL_debug = (SvIOK(sv) ? SvIVX(sv) : sv_2iv(sv)) | DEBUG_TOP_FLAG;
+#endif
break;
case '\005': /* ^E */
if (*(mg->mg_ptr+1) == '\0') {