Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PATCH] allow features inside interactive debugger #11222

Closed
p5pRT opened this issue Mar 31, 2011 · 5 comments
Closed

[PATCH] allow features inside interactive debugger #11222

p5pRT opened this issue Mar 31, 2011 · 5 comments

Comments

@p5pRT
Copy link

p5pRT commented Mar 31, 2011

Migrated from rt.perl.org#87412 (status was 'resolved')

Searchable as RT87412$

@p5pRT
Copy link
Author

p5pRT commented Mar 31, 2011

From @salva

Created by @salva

Perl expressions using post-5.8 features are not allowed inside the interactive
debugger.

The attached patch enables all the features available in the running perl.

Perl Info

Flags:
    category=utilities
    severity=low

Site configuration information for perl 5.13.11:

Configured by salva at Thu Mar 31 13:50:54 CEST 2011.

Summary of my perl5 (revision 5 version 13 subversion 11) configuration:
  Derived from: 968ee499ff66c6dcd466884030cb185844f2d94f
  Ancestor: 8e720305f65b4f201f4aef0d72433f29360b876f
  Platform:
    osname=linux, osvers=2.6.38-7-generic, archname=x86_64-linux
    uname='linux topo 2.6.38-7-generic #39-ubuntu smp fri mar 25 21:24:57 utc 
2011 x86_64 x86_64 x86_64 gnulinux '
    config_args=''
    hint=previous, 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 ='-fno-strict-aliasing -pipe -fstack-protector 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include 
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    ccversion='', gccversion='4.5.2', 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='ld', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /lib64 /usr/lib64
    libs= 
    perllibs= 
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.13'
  Dynamic Linking:
    dlsrc=dl_none.xs, dlext=none, d_dlsymun=undef, ccdlflags=''
    cccdlflags='', lddlflags=''

Locally applied patches:
    


@INC for perl 5.13.11:
    /usr/local/perl/blead/lib/site_perl/5.13.11/x86_64-linux
    /usr/local/perl/blead/lib/site_perl/5.13.11
    /usr/local/perl/blead/lib/5.13.11/x86_64-linux
    /usr/local/perl/blead/lib/5.13.11
    .


Environment for perl 5.13.11:
    HOME=/home/salva
    LANG=en_US.UTF-8
    LANGUAGE=en_US:en
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    
PATH=/usr/local/perl/blead/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

    PERL_BADLANG (unset)
    SHELL=/bin/bash

@p5pRT
Copy link
Author

p5pRT commented Mar 31, 2011

From @salva

perl5db.pl-0.patch
diff --git a/lib/perl5db.pl b/lib/perl5db.pl
index ea0d049..a7ef45d 100644
--- a/lib/perl5db.pl
+++ b/lib/perl5db.pl
@@ -512,6 +512,12 @@ package DB;
 
 BEGIN {eval 'use IO::Handle'};	# Needed for flush only? breaks under miniperl
 
+BEGIN {
+    require feature;
+    $^V =~ /^v(\d+\.\d+)/;
+    feature->import(":$1");
+}
+
 # Debugger for Perl 5.00x; perl5db.pl patch level:
 $VERSION = '1.33';
 

@p5pRT
Copy link
Author

p5pRT commented Jun 11, 2011

From @cpansprout

On Thu Mar 31 06​:59​:35 2011, salva wrote​:

Perl expressions using post-5.8 features are not allowed inside the
interactive
debugger.

The attached patch enables all the features available in the running
perl.

Thank you. Applied as e56c1e8.

@p5pRT
Copy link
Author

p5pRT commented Jun 11, 2011

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Jun 11, 2011

@cpansprout - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant