diff options
author | Jesse Vincent <jesse@bestpractical.com> | 2012-04-24 15:05:55 -0400 |
---|---|---|
committer | Ricardo Signes <rjbs@cpan.org> | 2012-05-01 19:08:57 -0400 |
commit | b9238fd3a387e42a408fffd89cea7e1f94ea7e6a (patch) | |
tree | b2bcd2cd7cbdeab6589ea2cfb2dd89b0db368018 /lib | |
parent | 2f8f112e03b73a49c60674d3b5e00b4463f1d5b7 (diff) | |
download | perl-b9238fd3a387e42a408fffd89cea7e1f94ea7e6a.tar.gz |
We now have version control and no longer need a changelog in perl5db
Diffstat (limited to 'lib')
-rw-r--r-- | lib/perl5db.pl | 260 |
1 files changed, 0 insertions, 260 deletions
diff --git a/lib/perl5db.pl b/lib/perl5db.pl index e25b728b23..b4345e5f77 100644 --- a/lib/perl5db.pl +++ b/lib/perl5db.pl @@ -712,266 +712,6 @@ sub eval { # Ray Lischner (uunet!mntgfx!lisch) as of 5 Nov 1990 # Johan Vromans -- upgrade to 4.0 pl 10 # Ilya Zakharevich -- patches after 5.001 (and some before ;-) - -# (We have made efforts to clarify the comments in the change log -# in other places; some of them may seem somewhat obscure as they -# were originally written, and explaining them away from the code -# in question seems conterproductive.. -JM) - -######################################################################## -# Changes: 0.94 -# + A lot of things changed after 0.94. First of all, core now informs -# debugger about entry into XSUBs, overloaded operators, tied operations, -# BEGIN and END. Handy with 'O f=2'. -# + This can make debugger a little bit too verbose, please be patient -# and report your problems promptly. -# + Now the option frame has 3 values: 0,1,2. XXX Document! -# + Note that if DESTROY returns a reference to the object (or object), -# the deletion of data may be postponed until the next function call, -# due to the need to examine the return value. -# -# Changes: 0.95 -# + 'v' command shows versions. -# -# Changes: 0.96 -# + 'v' command shows version of readline. -# primitive completion works (dynamic variables, subs for 'b' and 'l', -# options). Can 'p %var' -# + Better help ('h <' now works). New commands <<, >>, {, {{. -# {dump|print}_trace() coded (to be able to do it from <<cmd). -# + 'c sub' documented. -# + At last enough magic combined to stop after the end of debuggee. -# + !! should work now (thanks to Emacs bracket matching an extra -# ']' in a regexp is caught). -# + 'L', 'D' and 'A' span files now (as documented). -# + Breakpoints in 'require'd code are possible (used in 'R'). -# + Some additional words on internal work of debugger. -# + 'b load filename' implemented. -# + 'b postpone subr' implemented. -# + now only 'q' exits debugger (overwritable on $inhibit_exit). -# + When restarting debugger breakpoints/actions persist. -# + Buglet: When restarting debugger only one breakpoint/action per -# autoloaded function persists. -# -# Changes: 0.97: NonStop will not stop in at_exit(). -# + Option AutoTrace implemented. -# + Trace printed differently if frames are printed too. -# + new 'inhibitExit' option. -# + printing of a very long statement interruptible. -# Changes: 0.98: New command 'm' for printing possible methods -# + 'l -' is a synonym for '-'. -# + Cosmetic bugs in printing stack trace. -# + 'frame' & 8 to print "expanded args" in stack trace. -# + Can list/break in imported subs. -# + new 'maxTraceLen' option. -# + frame & 4 and frame & 8 granted. -# + new command 'm' -# + nonstoppable lines do not have ':' near the line number. -# + 'b compile subname' implemented. -# + Will not use $` any more. -# + '-' behaves sane now. -# Changes: 0.99: Completion for 'f', 'm'. -# + 'm' will remove duplicate names instead of duplicate functions. -# + 'b load' strips trailing whitespace. -# completion ignores leading '|'; takes into account current package -# when completing a subroutine name (same for 'l'). -# Changes: 1.07: Many fixed by tchrist 13-March-2000 -# BUG FIXES: -# + Added bare minimal security checks on perldb rc files, plus -# comments on what else is needed. -# + Fixed the ornaments that made "|h" completely unusable. -# They are not used in print_help if they will hurt. Strip pod -# if we're paging to less. -# + Fixed mis-formatting of help messages caused by ornaments -# to restore Larry's original formatting. -# + Fixed many other formatting errors. The code is still suboptimal, -# and needs a lot of work at restructuring. It's also misindented -# in many places. -# + Fixed bug where trying to look at an option like your pager -# shows "1". -# + Fixed some $? processing. Note: if you use csh or tcsh, you will -# lose. You should consider shell escapes not using their shell, -# or else not caring about detailed status. This should really be -# unified into one place, too. -# + Fixed bug where invisible trailing whitespace on commands hoses you, -# tricking Perl into thinking you weren't calling a debugger command! -# + Fixed bug where leading whitespace on commands hoses you. (One -# suggests a leading semicolon or any other irrelevant non-whitespace -# to indicate literal Perl code.) -# + Fixed bugs that ate warnings due to wrong selected handle. -# + Fixed a precedence bug on signal stuff. -# + Fixed some unseemly wording. -# + Fixed bug in help command trying to call perl method code. -# + Fixed to call dumpvar from exception handler. SIGPIPE killed us. -# ENHANCEMENTS: -# + Added some comments. This code is still nasty spaghetti. -# + Added message if you clear your pre/post command stacks which was -# very easy to do if you just typed a bare >, <, or {. (A command -# without an argument should *never* be a destructive action; this -# API is fundamentally screwed up; likewise option setting, which -# is equally buggered.) -# + Added command stack dump on argument of "?" for >, <, or {. -# + Added a semi-built-in doc viewer command that calls man with the -# proper %Config::Config path (and thus gets caching, man -k, etc), -# or else perldoc on obstreperous platforms. -# + Added to and rearranged the help information. -# + Detected apparent misuse of { ... } to declare a block; this used -# to work but now is a command, and mysteriously gave no complaint. -# -# Changes: 1.08: Apr 25, 2001 Jon Eveland <jweveland@yahoo.com> -# BUG FIX: -# + This patch to perl5db.pl cleans up formatting issues on the help -# summary (h h) screen in the debugger. Mostly columnar alignment -# issues, plus converted the printed text to use all spaces, since -# tabs don't seem to help much here. -# -# Changes: 1.09: May 19, 2001 Ilya Zakharevich <ilya@math.ohio-state.edu> -# Minor bugs corrected; -# + Support for auto-creation of new TTY window on startup, either -# unconditionally, or if started as a kid of another debugger session; -# + New 'O'ption CreateTTY -# I<CreateTTY> bits control attempts to create a new TTY on events: -# 1: on fork() -# 2: debugger is started inside debugger -# 4: on startup -# + Code to auto-create a new TTY window on OS/2 (currently one -# extra window per session - need named pipes to have more...); -# + Simplified interface for custom createTTY functions (with a backward -# compatibility hack); now returns the TTY name to use; return of '' -# means that the function reset the I/O handles itself; -# + Better message on the semantic of custom createTTY function; -# + Convert the existing code to create a TTY into a custom createTTY -# function; -# + Consistent support for TTY names of the form "TTYin,TTYout"; -# + Switch line-tracing output too to the created TTY window; -# + make 'b fork' DWIM with CORE::GLOBAL::fork; -# + High-level debugger API cmd_*(): -# cmd_b_load($filenamepart) # b load filenamepart -# cmd_b_line($lineno [, $cond]) # b lineno [cond] -# cmd_b_sub($sub [, $cond]) # b sub [cond] -# cmd_stop() # Control-C -# cmd_d($lineno) # d lineno (B) -# The cmd_*() API returns FALSE on failure; in this case it outputs -# the error message to the debugging output. -# + Low-level debugger API -# break_on_load($filename) # b load filename -# @files = report_break_on_load() # List files with load-breakpoints -# breakable_line_in_filename($name, $from [, $to]) -# # First breakable line in the -# # range $from .. $to. $to defaults -# # to $from, and may be less than -# # $to -# breakable_line($from [, $to]) # Same for the current file -# break_on_filename_line($name, $lineno [, $cond]) -# # Set breakpoint,$cond defaults to -# # 1 -# break_on_filename_line_range($name, $from, $to [, $cond]) -# # As above, on the first -# # breakable line in range -# break_on_line($lineno [, $cond]) # As above, in the current file -# break_subroutine($sub [, $cond]) # break on the first breakable line -# ($name, $from, $to) = subroutine_filename_lines($sub) -# # The range of lines of the text -# The low-level API returns TRUE on success, and die()s on failure. -# -# Changes: 1.10: May 23, 2001 Daniel Lewart <d-lewart@uiuc.edu> -# BUG FIXES: -# + Fixed warnings generated by "perl -dWe 42" -# + Corrected spelling errors -# + Squeezed Help (h) output into 80 columns -# -# Changes: 1.11: May 24, 2001 David Dyck <dcd@tc.fluke.com> -# + Made "x @INC" work like it used to -# -# Changes: 1.12: May 24, 2001 Daniel Lewart <d-lewart@uiuc.edu> -# + Fixed warnings generated by "O" (Show debugger options) -# + Fixed warnings generated by "p 42" (Print expression) -# Changes: 1.13: Jun 19, 2001 Scott.L.Miller@compaq.com -# + Added windowSize option -# Changes: 1.14: Oct 9, 2001 multiple -# + Clean up after itself on VMS (Charles Lane in 12385) -# + Adding "@ file" syntax (Peter Scott in 12014) -# + Debug reloading selfloaded stuff (Ilya Zakharevich in 11457) -# + $^S and other debugger fixes (Ilya Zakharevich in 11120) -# + Forgot a my() declaration (Ilya Zakharevich in 11085) -# Changes: 1.15: Nov 6, 2001 Michael G Schwern <schwern@pobox.com> -# + Updated 1.14 change log -# + Added *dbline explanatory comments -# + Mentioning perldebguts man page -# Changes: 1.16: Feb 15, 2002 Mark-Jason Dominus <mjd@plover.com> -# + $onetimeDump improvements -# Changes: 1.17: Feb 20, 2002 Richard Foley <richard.foley@rfi.net> -# Moved some code to cmd_[.]()'s for clarity and ease of handling, -# rationalised the following commands and added cmd_wrapper() to -# enable switching between old and frighteningly consistent new -# behaviours for diehards: 'o CommandSet=pre580' (sigh...) -# a(add), A(del) # action expr (added del by line) -# + b(add), B(del) # break [line] (was b,D) -# + w(add), W(del) # watch expr (was W,W) -# # added del by expr -# + h(summary), h h(long) # help (hh) (was h h,h) -# + m(methods), M(modules) # ... (was m,v) -# + o(option) # lc (was O) -# + v(view code), V(view Variables) # ... (was w,V) -# Changes: 1.18: Mar 17, 2002 Richard Foley <richard.foley@rfi.net> -# + fixed missing cmd_O bug -# Changes: 1.19: Mar 29, 2002 Spider Boardman -# + Added missing local()s -- DB::DB is called recursively. -# Changes: 1.20: Feb 17, 2003 Richard Foley <richard.foley@rfi.net> -# + pre'n'post commands no longer trashed with no args -# + watch val joined out of eval() -# Changes: 1.21: Jun 04, 2003 Joe McMahon <mcmahon@ibiblio.org> -# + Added comments and reformatted source. No bug fixes/enhancements. -# + Includes cleanup by Robin Barker and Jarkko Hietaniemi. -# Changes: 1.22 Jun 09, 2003 Alex Vandiver <alexmv@MIT.EDU> -# + Flush stdout/stderr before the debugger prompt is printed. -# Changes: 1.23: Dec 21, 2003 Dominique Quatravaux -# + Fix a side-effect of bug #24674 in the perl debugger ("odd taint bug") -# Changes: 1.24: Mar 03, 2004 Richard Foley <richard.foley@rfi.net> -# + Added command to save all debugger commands for sourcing later. -# + Added command to display parent inheritance tree of given class. -# + Fixed minor newline in history bug. -# Changes: 1.25: Apr 17, 2004 Richard Foley <richard.foley@rfi.net> -# + Fixed option bug (setting invalid options + not recognising valid short forms) -# Changes: 1.26: Apr 22, 2004 Richard Foley <richard.foley@rfi.net> -# + unfork the 5.8.x and 5.9.x debuggers. -# + whitespace and assertions call cleanup across versions -# + H * deletes (resets) history -# + i now handles Class + blessed objects -# Changes: 1.27: May 09, 2004 Richard Foley <richard.foley@rfi.net> -# + updated pod page references - clunky. -# + removed windowid restriction for forking into an xterm. -# + more whitespace again. -# + wrapped restart and enabled rerun [-n] (go back n steps) command. -# Changes: 1.28: Oct 12, 2004 Richard Foley <richard.foley@rfi.net> -# + Added threads support (inc. e and E commands) -# Changes: 1.29: Nov 28, 2006 Bo Lindbergh <blgl@hagernas.com> -# + Added macosx_get_fork_TTY support -# Changes: 1.30: Mar 06, 2007 Andreas Koenig <andk@cpan.org> -# + Added HistFile, HistSize -# Changes: 1.31 -# + Remove support for assertions and -A -# + stop NEXT::AUTOLOAD from emitting warnings under the debugger. RT #25053 -# + "update for Mac OS X 10.5" [finding the tty device] -# + "What I needed to get the forked debugger to work" [on VMS] -# + [perl #57016] debugger: o warn=0 die=0 ignored -# + Note, but don't use, PERLDBf_SAVESRC -# + Fix #7013: lvalue subs not working inside debugger -# Changes: 1.32: Jun 03, 2009 Jonathan Leto <jonathan@leto.net> -# + Fix bug where a key _< with undefined value was put into the symbol table -# + when the $filename variable is not set -# Changes: 1.33: -# + Debugger prints lines to the remote port when it forks and openes a new port (f633fd2) -# + The debugger now continues to use RemotePort when it's been configured to use it. (11653f7) -# + Stop using $ENV{LESS} for parameters not intended for less (d463cf2) -# + Configure has a path to less and perl5db.pl can use it (bf320d6) -# + Die with $@ instead of empty message (86755f4) -# + Remove extra/useless $@ check after eval { require PadWalker } (which is still checked) (dab8d6d) -# + Promote eval( "require ..." ) to eval { require ... } (4a49187) -# + Promote eval { require( ... )} || die to mere require( ... ) (999f23b) -# + Remove indirect object notation from debugger (bee4b46) -# + Document that @{$main::{'_<'.$filename}} lines are dualvar to (COP*). (7e17a74) -# + Remove MacOS classic support from the debugger. (2b894b7) ######################################################################## =head1 DEBUGGER INITIALIZATION |