develooper Front page | perl.perl5.porters | Postings from May 2013

[perl #117809] perldb.ini undocumented in perldb, even though .perldb is

From:
yary
Date:
May 1, 2013 18:01
Subject:
[perl #117809] perldb.ini undocumented in perldb, even though .perldb is
Message ID:
rt-3.6.HEAD-28177-1367273476-1561.117809-75-0@perl.org
# New Ticket Created by  yary 
# Please include the string:  [perl #117809]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=117809 >


I have been trying to discover why the plain-vanilla perl debegger
isn't sourcing ./.perldb and found two issues while looking
through the perl5db.pl source code:

1. lines 1372+ of perl5db.pl say:
if ( -e "/dev/tty" ) {                      # this is the wrong metric!
    $rcfile = ".perldb";
}
else {
    $rcfile = "perldb.ini";
}

- since the comment shows that the writer knew it was a poor way
of testing for interactivity, I'm not reporting it, but I did need
to quote those lines for the "real" issue I want to report:

The perl debugger will look in the current directory for either
.perldb or perdb.ini BUT the perldb perldoc only mentions .perldb
and omits any mention of perldb.ini

This is the case even in perl 5.16.2 "perldebug" man page- so even
though this report is being written from 5.10.0, this doc omission
persisists to recent perls.


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
Site configuration information for perl 5.10.0:

Configured by sshd_server at Sun May 24 12:08:53 2009.

Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
  Platform:
    osname=MSWin32, osvers=5.2, archname=MSWin32-x64-multi-thread
    uname=''
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cl', ccflags ='-nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -Wp64
-fp:precise -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64
-DCONSERVATIVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC
-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO
-DPERL_MSVCRT_READFIX',
    optimize='-MD -Zi -DNDEBUG -Ox -GL -Wp64 -fp:precise',
    cppflags='-DWIN32'
    ccversion='14.00.40310.41', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
    ivtype='__int64', ivsize=8, nvtype='double', nvsize=8, Off_t='__int64',
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf -ltcg
-libpath:"C:\Perl64\lib\CORE"  -machine:AMD64'
    libpth=\lib
    libs=  oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib
uuid.lib ws2_32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib
bufferoverflowU.lib msvcrt.lib
    perllibs=  oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib
uuid.lib ws2_32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib
bufferoverflowU.lib msvcrt.lib
    libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl510.lib
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug
-opt:ref,icf -ltcg  -libpath:"C:\Perl64\lib\CORE"  -machine:AMD64'

Locally applied patches:
    ACTIVEPERL_LOCAL_PATCHES_ENTRY
    f7bbab select() generates 'Invalid parameter' messages on Windows Vista.
    8dc00b fix buffer overflow in win32_select()
    36f064 do/require don't treat '.\foo' or '..\foo' as absolute paths on
Windows
    287a96 fix -p function and Fcntl::S_IFIFO constant under Microsoft VC
compiler
    406878 avoids segfaults invoking S_raise_signal() (on Linux)
    40c7cc Win32 process ids can have more than 16 bits
    37589e Load 'loadable object' with non-default file extension
    d374f9 64-bit fix for Time::Local

---
@INC for perl 5.10.0:
    c:/perl64/site/lib
    c:/perl64/lib
    .

---
Environment for perl 5.10.0:
    HOME (unset)
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=c:\perl64\bin;C:\Program Files
(x86)\Teradata\Client\14.00\AXSMOD\;C:\Program Files
(x86)\Teradata\Client\14.00\AXSMOD\;C:\Program Files
(x86)\Teradata\Client\14.00\bin\;C:\Program
Files\Teradata\Client\14.00\bin\;C:\Program Files
(x86)\Teradata\Client\14.00\CLIv2\;C:\Program
Files\Teradata\Client\14.00\CLIv2\;C:\Program Files
(x86)\Teradata\Client\14.00\ODBC Driver for Teradata\Lib\;C:\Program
Files\Teradata\Client\14.00\ODBC Driver for Teradata
nt-x8664\Lib\;C:\Program Files (x86)\Teradata\Client\14.00\Shared ICU
Libraries for Teradata\lib\;C:\Program Files\Teradata\Client\14.00\Shared
ICU Libraries for Teradata\lib\;C:\Program
Files\EMC\PowerCommon\;C:\Program Files\EMC\PowerPath\;C:\Program
Files\EMC\PowerPath\32bit\;C:\Program
Files\EMC\RSA\CST\lib\;C:\perl\Perl\bin\;C:\Program Files
(x86)\NCR\Teradata
Client\cliv2\;C:\Perl64\site\bin;C:\Perl64\bin;C:\Program
Files\HP\NCU;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\BMCSOF~1\Patrol3\bin;C:\Program
Files\BMC Software\common\globalc\bin\Windows-x86;C:\Program Files\BMC
Software\common\globalc\bin\Windows-x86-64;C:\Program Files\BMC
Software\Patrol3\BEST1\7.5.10\bgs\bin;C:\Program Files\TortoiseSVN\bin
    PERL_BADLANG (unset)
    SHELL (unset)



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About