Open p5pRT opened 11 years ago
This is a bug report for perl from bpmedley@cpan.org\, generated with the help of perlbug 1.39 running under perl 5.17.7.
From 1d2b211d6ca342928e1d829444523076fcd6c2e9 Mon Sep 17 00:00:00 2001 From: bpm \bpm@​linuxdev\.\(none\) Date: Sat\, 22 Dec 2012 15:27:53 -0600 Subject: [PATCH] Add in a) trace lines that match a re; b) ability to return up to N subroutines; c) add in frame command (dumps info about a stack frame). MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------1.7.1"
This is a multi-part message in MIME format. --------------1.7.1 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: 8bit
lib/perl5db.pl | 70 +++++++++++++++- lib/perl5db.t | 182 +++++++++++++++++++++++++++++++++++++++- lib/perl5db/t/test-r-statement | 9 ++ 3 files changed\, 256 insertions(+)\, 5 deletions(-)
--------------1.7.1 Content-Type: text/x-patch; name="0001-Add-in-a-trace-lines-that-match-a-re-b-ability-to-re.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0001-Add-in-a-trace-lines-that-match-a-re-b-ability-to-re.patch"
Flags: category=core severity=wishlist
Site configuration information for perl 5.17.7:
Configured by bpm at Fri Dec 21 17:39:25 CST 2012.
Summary of my perl5 (revision 5 version 17 subversion 7) configuration: Derived from: 7a0fe8d157063a5d4017c60814c1ea577f105a72 Platform: osname=linux\, osvers=2.6.32-279.14.1.el6.x86_64\, archname=x86_64-linux uname='linux linuxdev 2.6.32-279.14.1.el6.x86_64 #1 smp tue nov 6 23:43:09 utc 2012 x86_64 x86_64 x86_64 gnulinux ' config_args='-des -A ccflags=-fPIC -Dusedevel -Dprefix=/opt/shlomif-d-perl' hint=recommended\, useposix=true\, d_sigaction=define useithreads=undef\, usemultiplicity=undef useperlio=define\, d_sfio=undef\, uselargefiles=define\, usesocks=undef use64bitint=define\, use64bitall=define\, uselongdouble=undef usemymalloc=n\, bincompat5005=undef Compiler: cc='cc'\, ccflags ='-fPIC -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'\, optimize='-O2'\, cppflags='-fPIC -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include' ccversion=''\, gccversion='4.4.6 20120305 (Red Hat 4.4.6-4)'\, gccosandvers='' intsize=4\, longsize=8\, ptrsize=8\, doublesize=8\, byteorder=12345678 d_longlong=define\, longlongsize=8\, d_longdbl=define\, longdblsize=16 ivtype='long'\, ivsize=8\, nvtype='double'\, nvsize=8\, Off_t='off_t'\, lseeksize=8 alignbytes=8\, prototype=define Linker and Libraries: ld='cc'\, ldflags =' -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /lib/../lib64 /usr/lib/../lib64 /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib64 libs=-lnsl -ldl -lm -lcrypt -lutil -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc libc=\, so=so\, useshrplib=false\, libperl=libperl.a gnulibc_version='2.12' Dynamic Linking: dlsrc=dl_dlopen.xs\, dlext=so\, d_dlsymun=undef\, ccdlflags='-Wl\,-E' cccdlflags='-fPIC'\, lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector'
Locally applied patches:
@INC for perl 5.17.7: /opt/shlomif-d-perl/lib/site_perl/5.17.7/x86_64-linux /opt/shlomif-d-perl/lib/site_perl/5.17.7 /opt/shlomif-d-perl/lib/5.17.7/x86_64-linux /opt/shlomif-d-perl/lib/5.17.7 .
Environment for perl 5.17.7: HOME=/home/bpm LANG=en_US.UTF-8 LANGUAGE (unset) LD_LIBRARY_PATH (unset) LOGDIR (unset) PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/bpm/bin PERL_BADLANG (unset) SHELL=/bin/bash
This is an attempt at a patch against the latest shlomif-perl-d- refactoring branch.
This is an attempt at a patch against the latest shlomif-perl-d- refactoring branch.
Updated patch to 5.19.1. Will update tests if there is interest.
Updated patch to 5.19.1. Will update tests if there is interest.
Updated patch to 5.19.1. Will update tests if there is interest.
Updated patch to 5.19.1. Will update tests if there is interest.
On Sun Jun 02 15:46:11 2013\, bpmedley wrote:
Updated patch to 5.19.1. Will update tests if there is interest.
Is there any chance you could document the new behaviour - in pod/perldebug.pod?
Also\, the following:
@@ -4282\,7 +4329\,12 @@ sub depth_print_lineinfo { my $always_print = shift;
- print_lineinfo( @_ ) if ($always_print or $stack_depth \< $trace_to_depth); + if ($trace_re) { + print_lineinfo( @_ ) if ($always_print or $_[0] =~ m/$trace_re/); + } + else { + print_lineinfo( @_ ) if ($always_print or $stack_depth \< $trace_to_depth); + } }
I think would be better done something like:
if ($always_print || ($trace_re && $_[0] =~ /$trace_re/) || $stack_depth \< $trace_to_depth) { print_lineinfo( @_ ); }
(setting $trace_to_depth to 0 when you set $trace_re)
Tony
The RT System itself - Status changed from 'new' to 'open'
Migrated from rt.perl.org#116180 (status was 'open')
Searchable as RT116180$