From nobody at rubyforge.org Wed Mar 11 14:57:08 2009 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Wed, 11 Mar 2009 14:57:08 -0400 (EDT) Subject: [Ruby-debug-commits] [909] trunk: Update "catch" command help string. Message-ID: <20090311185708.DE0071779921@rubyforge.org> Revision: 909 Author: rockyb Date: 2009-03-11 14:57:08 -0400 (Wed, 11 Mar 2009) Log Message: ----------- Update "catch" command help string. Reindent some emacs files to make tests happy. Modified Paths: -------------- trunk/cli/ruby-debug/commands/catchpoint.rb trunk/emacs/rdebug-core.el trunk/emacs/rdebug-track.el trunk/emacs/test/test-regexp.el Modified: trunk/cli/ruby-debug/commands/catchpoint.rb =================================================================== --- trunk/cli/ruby-debug/commands/catchpoint.rb 2009-02-10 04:32:40 UTC (rev 908) +++ trunk/cli/ruby-debug/commands/catchpoint.rb 2009-03-11 18:57:08 UTC (rev 909) @@ -43,9 +43,11 @@ def help(cmd) %{ - cat[ch]\t\t\tsame as "info catch" - cat[ch] \tIntercept when there would otherwise be is no handler -for it. + cat[ch]\t\tsame as "info catch" + cat[ch] [on|off] +\tIntercept when there would otherwise be no handler. +\tWith an "on" or "off", turn handling the exception on or off. + cat[ch] off\tdelete all catchpoints } end end Modified: trunk/emacs/rdebug-core.el =================================================================== --- trunk/emacs/rdebug-core.el 2009-02-10 04:32:40 UTC (rev 908) +++ trunk/emacs/rdebug-core.el 2009-03-11 18:57:08 UTC (rev 909) @@ -338,7 +338,7 @@ (pop-to-buffer (setq rdebug-cmd-buffer (apply 'make-comint rdebug-buffer-name program nil args)))) - + ;; Since comint clobbered the mode, we don't set it until now. (gud-mode) (set (make-local-variable 'gud-target-name) target-name) Modified: trunk/emacs/rdebug-track.el =================================================================== --- trunk/emacs/rdebug-track.el 2009-02-10 04:32:40 UTC (rev 908) +++ trunk/emacs/rdebug-track.el 2009-03-11 18:57:08 UTC (rev 909) @@ -365,7 +365,7 @@ (rdebug-populate-common-keys (current-local-map)) (rdebug-populate-debugger-menu (current-local-map)) - + (set (make-local-variable 'comint-prompt-regexp) (concat "^" rdebug-input-prompt-regexp)) (setq paragraph-start comint-prompt-regexp) Modified: trunk/emacs/test/test-regexp.el =================================================================== --- trunk/emacs/test/test-regexp.el 2009-02-10 04:32:40 UTC (rev 908) +++ trunk/emacs/test/test-regexp.el 2009-03-11 18:57:08 UTC (rev 909) @@ -106,7 +106,7 @@ "/home/rocky/ruby/gcd.rb" "19" ) ) - + (defun regexp-unittest-traceback-test (location-str file-str line-str) "Test to see that location-str matches position-regexp-file-test with the correct file and line submatches." From nobody at rubyforge.org Wed Mar 11 19:42:07 2009 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Wed, 11 Mar 2009 19:42:07 -0400 (EDT) Subject: [Ruby-debug-commits] [910] trunk: update texinfo for catch Message-ID: <20090311234207.711BE1978561@rubyforge.org> Revision: 910 Author: rockyb Date: 2009-03-11 19:42:06 -0400 (Wed, 11 Mar 2009) Log Message: ----------- update texinfo for catch Modified Paths: -------------- trunk/ChangeLog trunk/doc/ruby-debug.texi trunk/lib/ChangeLog Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2009-03-11 18:57:08 UTC (rev 909) +++ trunk/ChangeLog 2009-03-11 23:42:06 UTC (rev 910) @@ -1,3 +1,39 @@ +2009-02-10 04:32 Rocky Bernstein + + * emacs/rdebug-core.el: Remove the annoying disappearing command + window when we there's an initial error in running the Ruby + program + +2009-01-23 20:51 Rocky Bernstein + + * doc/ruby-debug.texi: Show how to add a new command + +2009-01-23 17:20 Rocky Bernstein + + * cli/ruby-debug/commands/kill.rb, cli/ruby-debug/processor.rb: Add + a kill command + +2008-12-24 03:32 Rocky Bernstein + + * test/cli/commands/unit/regexp.rb: One more quit test. + +2008-12-24 03:21 Rocky Bernstein + + * cli/ruby-debug/commands/quit.rb, doc/ruby-debug.texi, + test/cli/commands/unit/regexp.rb, test/data/annotate.cmd, + test/data/annotate.right, test/data/break_bad.cmd, + test/data/break_bad.right, test/data/breakpoints.cmd, + test/data/breakpoints.right: Allow ! suffix on {q{,uit},exit} to + be the same as "unconditionally" #23299 + +2008-11-25 02:43 Rocky Bernstein + + * ChangeLog, cli/ruby-debug/commands/frame.rb, configure.ac, + doc/ruby-debug.texi, ext/ruby_debug.c, lib/ChangeLog, + test/data/frame.cmd, test/data/frame.right: Frame without a frame + number means frame 0, same as gdb. We are now in 0.10.4 territory + now. + 2008-11-17 07:34 Rocky Bernstein * CHANGES: Last commit before release. @@ -5059,435 +5095,434 @@ 2007-03-24 18:11 Kent Sibilev - * : + * 2007-03-24 18:03 Kent Sibilev - * : ported stop reason from the trunk + * ported stop reason from the trunk 2007-03-19 08:05 Kent Sibilev - * : + * 2007-03-19 07:59 Kent Sibilev - * : + * 2007-03-19 07:46 Kent Sibilev - * : fixes processor to handler renaming + * fixes processor to handler renaming added a shortcut module 2007-03-15 04:00 Kent Sibilev - * : + * 2007-03-15 02:59 Kent Sibilev - * : + * 2007-03-15 02:58 Kent Sibilev - * : added 'set autoirb' setting + * added 'set autoirb' setting 2007-03-15 02:46 Kent Sibilev - * : + * 2007-03-15 02:39 Kent Sibilev - * : + * 2007-03-15 02:32 Kent Sibilev - * : + * 2007-03-15 02:32 Kent Sibilev - * : fixed help command + * fixed help command 2007-03-13 17:06 Kent Sibilev - * : missing file + * missing file 2007-03-13 17:06 Kent Sibilev - * : fixed rdoc + * fixed rdoc 2007-03-06 22:15 Kent Sibilev - * : updated help for list and eval commands + * updated help for list and eval commands 2007-03-06 19:51 Kent Sibilev - * : pass the current state to the interface object if it accepts it + * pass the current state to the interface object if it accepts it 2007-03-01 23:44 Kent Sibilev - * : fixed post-mortem + * fixed post-mortem 2007-02-27 08:02 Kent Sibilev - * : repackaging ruby-debug + * repackaging ruby-debug 2007-02-23 20:56 Kent Sibilev - * : added an option for Debugger.debug_load to stop at the first - line of code + * added an option for Debugger.debug_load to stop at the first line + of code 2007-02-12 06:59 Kent Sibilev - * : added --emacs option + * added --emacs option 2007-02-09 16:56 Kent Sibilev - * : in remote mode the debugger shouldn't stop inside of rdebug + * in remote mode the debugger shouldn't stop inside of rdebug script 2007-02-09 06:59 Kent Sibilev - * : + * 2007-02-09 06:20 Kent Sibilev - * : -- + * -- 2007-02-09 01:00 Kent Sibilev - * : fixed code reloading + * fixed code reloading made 'reload on' as a part of the 'set' command evaluate ~/.rdebugrc as an init script 2007-02-07 02:42 Kent Sibilev - * : should use ignored? method to check for the debugger's thread + * should use ignored? method to check for the debugger's thread 2007-02-06 22:21 Kent Sibilev - * : + * 2007-02-05 22:48 Kent Sibilev - * : -- + * -- 2007-02-05 22:11 Kent Sibilev - * : fixed emacs integration + * fixed emacs integration 2007-02-05 20:40 Kent Sibilev - * : -- + * -- 2007-02-05 20:38 Kent Sibilev - * : -- + * -- 2007-02-05 20:34 Kent Sibilev - * : -- + * -- 2007-02-05 20:16 Kent Sibilev - * : fixed another issue where a bogus frame is being left in the + * fixed another issue where a bogus frame is being left in the stack 2007-02-05 08:08 Kent Sibilev - * : should save frame id as well + * should save frame id as well 2007-02-05 07:55 Kent Sibilev - * : fix stack corruption error + * fix stack corruption error 2007-02-05 01:16 Kent Sibilev - * : store frame's self and dyna_vars along with file/line - information + * store frame's self and dyna_vars along with file/line information 2007-02-04 23:36 Kent Sibilev - * : seg fault bugfixes + * seg fault bugfixes fixed suspend/resume 2007-02-04 05:06 Kent Sibilev - * : restore prev patch + * restore prev patch 2007-02-04 03:49 Kent Sibilev - * : -- + * -- 2007-02-04 03:49 Kent Sibilev - * : A better fix for the segmentation fault + * A better fix for the segmentation fault 2007-02-03 22:02 Kent Sibilev - * : found a better patch + * found a better patch 2007-02-03 20:33 Kent Sibilev - * : -- + * -- 2007-02-03 20:24 Kent Sibilev - * : fix seg fault by avoiding ruby's bug + * fix seg fault by avoiding ruby's bug fixed Context#resume when handling post-mortem all threads must be suspended 2007-02-02 18:47 Kent Sibilev - * : removed ambiguity with down command + * removed ambiguity with down command 2007-02-01 23:48 Kent Sibilev - * : typo + * typo 2007-02-01 23:10 Kent Sibilev - * : changes for build 0.7 + * changes for build 0.7 2007-02-01 22:15 Kent Sibilev - * : made eval command available from the control thread + * made eval command available from the control thread 2007-02-01 17:30 Kent Sibilev - * : fixed dllexport for windows platform + * fixed dllexport for windows platform 2007-02-01 15:49 Kent Sibilev - * : ditto + * ditto 2007-02-01 07:22 Kent Sibilev - * : added setting command + * added setting command added Context#suspended? method dispay suspended status in the thread list display frame starting from zero 2007-01-31 22:12 Kent Sibilev - * : store object ids in VALUE type + * store object ids in VALUE type 2007-01-31 21:13 Kent Sibilev - * : ditto + * ditto 2007-01-31 21:12 Kent Sibilev - * : fixed help command + * fixed help command 2007-01-31 21:04 Kent Sibilev - * : ditto + * ditto 2007-01-31 20:44 Kent Sibilev - * : make a deep copy when capturing post mortem context + * make a deep copy when capturing post mortem context 2007-01-31 19:39 Kent Sibilev - * : fixed frame count + * fixed frame count added frame_self method to context 2007-01-31 16:48 Kent Sibilev - * : removed all references to frames array + * removed all references to frames array fixed post-mortem debugging 2007-01-31 00:51 Kent Sibilev - * : removed obsolete frames usage + * removed obsolete frames usage 2007-01-31 00:41 Kent Sibilev - * : refactored out frame class and preallocate stack + * refactored out frame class and preallocate stack made local variable available even when bindings are not collected. 2007-01-28 20:25 Kent Sibilev - * : -- + * -- 2007-01-28 06:22 Kent Sibilev - * : - Control thread is always started by rdebug script. + * - Control thread is always started by rdebug script. - Ability to specify negative frame number to frame commands. Patch from R. Bernstein. 2007-01-28 04:59 Kent Sibilev - * : -- + * -- 2007-01-28 04:52 Kent Sibilev - * : added top frame caching + * added top frame caching control thread is always started by rdebug script 2007-01-28 01:21 Kent Sibilev - * : + * 2007-01-27 02:21 Kent Sibilev - * : -- + * -- 2007-01-27 01:43 Kent Sibilev - * : another performance optimization + * another performance optimization 2007-01-26 20:28 Kent Sibilev - * : fixed #7484 + * fixed #7484 2007-01-26 19:31 Kent Sibilev - * : -- + * -- 2007-01-26 17:59 Kent Sibilev - * : revisited file name comparing procedure + * revisited file name comparing procedure 2007-01-26 09:03 Kent Sibilev - * : performance improvements + * performance improvements 2007-01-26 03:12 Kent Sibilev - * : added option to exclude collecting of frame bindings + * added option to exclude collecting of frame bindings 2007-01-25 01:41 Kent Sibilev - * : small optimization + * small optimization 2007-01-25 00:55 Kent Sibilev - * : remove the live thread ref from locker structure as well + * remove the live thread ref from locker structure as well 2007-01-24 20:42 Kent Sibilev - * : don't keep a ref to a live thread. + * don't keep a ref to a live thread. check contexts that their threads are alive 2007-01-24 18:47 Kent Sibilev - * : ditto + * ditto 2007-01-24 18:33 Kent Sibilev - * : disable tracing when in post-mortem + * disable tracing when in post-mortem added -x/--trace option to rdebug script 2007-01-21 08:35 Kent Sibilev - * : updated changelog + * updated changelog 2007-01-21 08:13 Kent Sibilev - * : + * 2007-01-21 03:34 Kent Sibilev - * : assign an id to the breakpoint + * assign an id to the breakpoint 2007-01-21 01:20 Kent Sibilev - * : added post_mortem_method wrap method + * added post_mortem_method wrap method 2006-12-21 20:30 Kent Sibilev - * : fix of restart command for windows platform + * fix of restart command for windows platform 2006-12-21 20:16 Kent Sibilev - * : added 'restart' command + * added 'restart' command 2006-12-21 14:24 Kent Sibilev - * : update changelog + * update changelog 2006-12-21 14:12 Kent Sibilev - * : made 'exit' an alias to 'quit' + * made 'exit' an alias to 'quit' fixed the interoperability problem with rspec 2006-12-21 13:43 Kent Sibilev - * : fixed trace command in post-mortem mode + * fixed trace command in post-mortem mode 2006-12-21 02:00 Kent Sibilev - * : updated changelog + * updated changelog 2006-12-21 01:59 Kent Sibilev - * : initialize only once + * initialize only once 2006-12-21 01:08 Kent Sibilev - * : fixes irb help command + * fixes irb help command 2006-12-20 21:19 Kent Sibilev - * : check that debugger has been started + * check that debugger has been started 2006-12-20 20:41 Kent Sibilev - * : + * 2006-12-20 20:14 Kent Sibilev - * : bumped version + * bumped version 2006-12-20 20:08 Kent Sibilev - * : added post-mortem option to rdebug + * added post-mortem option to rdebug 2006-12-20 19:38 Kent Sibilev - * : initial support for post-mortem debugging + * initial support for post-mortem debugging 2006-12-19 06:13 Kent Sibilev - * : removed 'run' alias + * removed 'run' alias 2006-12-18 08:34 Kent Sibilev - * : added irb command + * added irb command fixed source_for method 2006-12-02 19:15 Kent Sibilev - * : added reload command + * added reload command 2006-12-02 18:32 Kent Sibilev - * : fixed #6518 and #6545 + * fixed #6518 and #6545 2006-12-01 06:49 Kent Sibilev - * : + * 2006-12-01 06:47 Kent Sibilev - * : + * 2006-11-21 23:29 Kent Sibilev - * : ensure that on/off is the last on the line + * ensure that on/off is the last on the line 2006-11-16 00:04 Kent Sibilev - * : fixed debug_method for assignment methods + * fixed debug_method for assignment methods 2006-11-16 00:01 Kent Sibilev - * : added the new branch for the stable version + * added the new branch for the stable version 2006-10-15 22:43 Kent Sibilev - * : branching a stable version + * branching a stable version 2006-10-15 22:26 Kent Sibilev Modified: trunk/doc/ruby-debug.texi =================================================================== --- trunk/doc/ruby-debug.texi 2009-03-11 18:57:08 UTC (rev 909) +++ trunk/doc/ruby-debug.texi 2009-03-11 23:42:06 UTC (rev 910) @@ -2507,11 +2507,13 @@ (i.e. the class that @code{self} belongs to at the start of the program), then use the name @code{Object}. - at kindex catch @ovar{exception} - at kindex cat @r{(@code{catch})} - at item catch + at kindex catch @ovar{exception} @r{[} on | 1 | off | 0 @r{]} + at kindex cat @r{(@code{catch})} + at item catch @ovar{exception} @r{[} on | 1 | off | 0 @r{]} Set catchpoint to an exception. Without an exception name show catchpoints. +With an ``on'' or ``off'' parameter, turn handling the exception on or +off. To delete all exceptions type ``catch off''. @cindex delete breakpoints @kindex delete @ovar{breakpoints} Modified: trunk/lib/ChangeLog =================================================================== --- trunk/lib/ChangeLog 2009-03-11 18:57:08 UTC (rev 909) +++ trunk/lib/ChangeLog 2009-03-11 23:42:06 UTC (rev 910) @@ -1,3 +1,8 @@ +2008-11-25 02:43 Rocky Bernstein + + * ChangeLog: Frame without a frame number means frame 0, same as + gdb. We are now in 0.10.4 territory now. + 2008-11-16 00:14 Rocky Bernstein * ChangeLog: Add rdoc for rdebug script. @@ -763,248 +768,248 @@ 2007-03-24 18:17 Kent Sibilev - * : stable becomes the trunk + * stable becomes the trunk 2007-03-13 17:06 Kent Sibilev - * : fixed rdoc + * fixed rdoc 2007-03-01 23:44 Kent Sibilev - * : fixed post-mortem + * fixed post-mortem 2007-02-27 08:02 Kent Sibilev - * : repackaging ruby-debug + * repackaging ruby-debug 2007-02-23 20:56 Kent Sibilev - * : added an option for Debugger.debug_load to stop at the first - line of code + * added an option for Debugger.debug_load to stop at the first line + of code 2007-02-12 06:59 Kent Sibilev - * : added --emacs option + * added --emacs option 2007-02-09 16:56 Kent Sibilev - * : in remote mode the debugger shouldn't stop inside of rdebug + * in remote mode the debugger shouldn't stop inside of rdebug script 2007-02-09 06:20 Kent Sibilev - * : -- + * -- 2007-02-09 01:00 Kent Sibilev - * : fixed code reloading + * fixed code reloading made 'reload on' as a part of the 'set' command evaluate ~/.rdebugrc as an init script 2007-02-07 02:42 Kent Sibilev - * : should use ignored? method to check for the debugger's thread + * should use ignored? method to check for the debugger's thread 2007-02-06 22:21 Kent Sibilev - * : + * 2007-02-05 22:48 Kent Sibilev - * : -- + * -- 2007-02-05 22:11 Kent Sibilev - * : fixed emacs integration + * fixed emacs integration 2007-02-05 20:16 Kent Sibilev - * : fixed another issue where a bogus frame is being left in the + * fixed another issue where a bogus frame is being left in the stack 2007-02-04 23:36 Kent Sibilev - * : seg fault bugfixes + * seg fault bugfixes fixed suspend/resume 2007-02-04 03:49 Kent Sibilev - * : A better fix for the segmentation fault + * A better fix for the segmentation fault 2007-02-03 20:24 Kent Sibilev - * : fix seg fault by avoiding ruby's bug + * fix seg fault by avoiding ruby's bug fixed Context#resume when handling post-mortem all threads must be suspended 2007-02-02 18:47 Kent Sibilev - * : removed ambiguity with down command + * removed ambiguity with down command 2007-02-01 23:48 Kent Sibilev - * : typo + * typo 2007-02-01 22:15 Kent Sibilev - * : made eval command available from the control thread + * made eval command available from the control thread 2007-02-01 07:22 Kent Sibilev - * : added setting command + * added setting command added Context#suspended? method dispay suspended status in the thread list display frame starting from zero 2007-01-31 21:13 Kent Sibilev - * : ditto + * ditto 2007-01-31 21:12 Kent Sibilev - * : fixed help command + * fixed help command 2007-01-31 19:39 Kent Sibilev - * : fixed frame count + * fixed frame count added frame_self method to context 2007-01-31 16:48 Kent Sibilev - * : removed all references to frames array + * removed all references to frames array fixed post-mortem debugging 2007-01-31 00:51 Kent Sibilev - * : removed obsolete frames usage + * removed obsolete frames usage 2007-01-31 00:41 Kent Sibilev - * : refactored out frame class and preallocate stack + * refactored out frame class and preallocate stack made local variable available even when bindings are not collected. 2007-01-28 20:25 Kent Sibilev - * : -- + * -- 2007-01-28 06:22 Kent Sibilev - * : - Control thread is always started by rdebug script. + * - Control thread is always started by rdebug script. - Ability to specify negative frame number to frame commands. Patch from R. Bernstein. 2007-01-28 04:52 Kent Sibilev - * : added top frame caching + * added top frame caching control thread is always started by rdebug script 2007-01-27 01:43 Kent Sibilev - * : another performance optimization + * another performance optimization 2007-01-26 20:28 Kent Sibilev - * : fixed #7484 + * fixed #7484 2007-01-26 17:59 Kent Sibilev - * : revisited file name comparing procedure + * revisited file name comparing procedure 2007-01-26 09:03 Kent Sibilev - * : performance improvements + * performance improvements 2007-01-26 03:12 Kent Sibilev - * : added option to exclude collecting of frame bindings + * added option to exclude collecting of frame bindings 2007-01-24 18:33 Kent Sibilev - * : disable tracing when in post-mortem + * disable tracing when in post-mortem added -x/--trace option to rdebug script 2007-01-21 08:13 Kent Sibilev - * : + * 2007-01-21 03:34 Kent Sibilev - * : assign an id to the breakpoint + * assign an id to the breakpoint 2007-01-21 01:20 Kent Sibilev - * : added post_mortem_method wrap method + * added post_mortem_method wrap method 2006-12-21 20:16 Kent Sibilev - * : added 'restart' command + * added 'restart' command 2006-12-21 14:12 Kent Sibilev - * : made 'exit' an alias to 'quit' + * made 'exit' an alias to 'quit' fixed the interoperability problem with rspec 2006-12-21 13:43 Kent Sibilev - * : fixed trace command in post-mortem mode + * fixed trace command in post-mortem mode 2006-12-21 01:59 Kent Sibilev - * : initialize only once + * initialize only once 2006-12-21 01:08 Kent Sibilev - * : fixes irb help command + * fixes irb help command 2006-12-20 21:19 Kent Sibilev - * : check that debugger has been started + * check that debugger has been started 2006-12-20 20:08 Kent Sibilev - * : added post-mortem option to rdebug + * added post-mortem option to rdebug 2006-12-20 19:38 Kent Sibilev - * : initial support for post-mortem debugging + * initial support for post-mortem debugging 2006-12-19 06:13 Kent Sibilev - * : removed 'run' alias + * removed 'run' alias 2006-12-18 08:34 Kent Sibilev - * : added irb command + * added irb command fixed source_for method 2006-12-02 19:15 Kent Sibilev - * : added reload command + * added reload command 2006-12-02 18:32 Kent Sibilev - * : fixed #6518 and #6545 + * fixed #6518 and #6545 2006-12-01 06:47 Kent Sibilev - * : + * 2006-11-21 23:29 Kent Sibilev - * : ensure that on/off is the last on the line + * ensure that on/off is the last on the line 2006-11-16 00:04 Kent Sibilev - * : fixed debug_method for assignment methods + * fixed debug_method for assignment methods 2006-11-16 00:01 Kent Sibilev - * : added the new branch for the stable version + * added the new branch for the stable version 2006-10-15 22:43 Kent Sibilev - * : branching a stable version + * branching a stable version 2006-10-15 22:26 Kent Sibilev From nobody at rubyforge.org Mon Mar 16 22:05:59 2009 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Mon, 16 Mar 2009 22:05:59 -0400 (EDT) Subject: [Ruby-debug-commits] [911] trunk: configure.ac: in 0.10.4vc now. Message-ID: <20090317020559.2E4FA1978565@rubyforge.org> Revision: 911 Author: rockyb Date: 2009-03-16 22:05:58 -0400 (Mon, 16 Mar 2009) Log Message: ----------- configure.ac: in 0.10.4vc now. Add -d in irb facilitate debugger testing via global $rdebug_state. Also set $rdebug_state in debuggertesting is set. "kill" is now allowed as a control command, this adjusts output. and this changes Modified Paths: -------------- trunk/cli/ruby-debug/commands/irb.rb trunk/cli/ruby-debug/processor.rb trunk/configure.ac trunk/test/data/ctrl.right trunk/test/data/post-mortem.right trunk/test/test-ctrl.rb Modified: trunk/cli/ruby-debug/commands/irb.rb =================================================================== --- trunk/cli/ruby-debug/commands/irb.rb 2009-03-11 23:42:06 UTC (rev 910) +++ trunk/cli/ruby-debug/commands/irb.rb 2009-03-17 02:05:58 UTC (rev 911) @@ -45,7 +45,9 @@ end def regexp - /^irb$/ + /^\s* irb + (?:\s+(-d))? + \s*$/x end def execute @@ -55,10 +57,12 @@ end save_trap = trap("SIGINT") do - throw :IRB_EXIT, :cont if $debug_in_irb + throw :IRB_EXIT, :cont if $rdebug_in_irb end - $debug_in_irb = true + add_debugging = '-d' == @match[1] + $rdebug_state = @state if add_debugging + $rdebug_in_irb = true cont = IRB.start_session(get_binding) if cont == :cont @state.proceed @@ -70,7 +74,8 @@ end ensure - $debug_in_irb = false + $rdebug_in_irb = nil + $rdebug_state = nil if add_debugging trap("SIGINT", save_trap) if save_trap end @@ -81,7 +86,10 @@ def help(cmd) %{ - irb\tstarts an Interactive Ruby (IRB) session. + irb [-d]\tstarts an Interactive Ruby (IRB) session. + +If -d is added you can get access to debugger state via the global variable +$RDEBUG_state. } end end Modified: trunk/cli/ruby-debug/processor.rb =================================================================== --- trunk/cli/ruby-debug/processor.rb 2009-03-11 23:42:06 UTC (rev 910) +++ trunk/cli/ruby-debug/processor.rb 2009-03-17 02:05:58 UTC (rev 911) @@ -224,7 +224,7 @@ # Handle debugger commands def process_commands(context, file, line) state, commands = always_run(context, file, line, 1) - + $rdebug_state = state if Command.settings[:debuggertesting] splitter = lambda do |str| str.split(/;/).inject([]) do |m, v| if m.empty? Modified: trunk/configure.ac =================================================================== --- trunk/configure.ac 2009-03-11 23:42:06 UTC (rev 910) +++ trunk/configure.ac 2009-03-17 02:05:58 UTC (rev 911) @@ -1,4 +1,4 @@ -AC_INIT(ruby-debug-extra, 0.10.4vc,) +AC_INIT(pydbgr, 0.10.4vc,) AC_CONFIG_SRCDIR(doc/ruby-debug.texi) AM_INIT_AUTOMAKE Modified: trunk/test/data/ctrl.right =================================================================== --- trunk/test/data/ctrl.right 2009-03-11 23:42:06 UTC (rev 910) +++ trunk/test/data/ctrl.right 2009-03-17 02:05:58 UTC (rev 911) @@ -3,8 +3,8 @@ Type 'help ' for help on a specific command Available commands: -break delete eval help interrupt pp putl reload save show thread -catch edit exit info p ps quit restart set source +break delete eval help interrupt p ps quit restart set source +catch edit exit info kill pp putl reload save show thread Generic command for showing things about the program being debugged. -- Modified: trunk/test/data/post-mortem.right =================================================================== --- trunk/test/data/post-mortem.right 2009-03-11 23:42:06 UTC (rev 910) +++ trunk/test/data/post-mortem.right 2009-03-17 02:05:58 UTC (rev 911) @@ -23,9 +23,10 @@ Type 'help ' for help on a specific command Available commands: -backtrace continue down exit irb pp reload show undisplay -break delete edit frame list ps restart source up -catch disable enable help method putl save thread var -condition display eval info p quit set trace where +backtrace delete enable info p reload source var +break disable eval irb pp restart thread where +catch display exit kill ps save trace +condition down frame list putl set undisplay +continue edit help method quit show up # quit Modified: trunk/test/test-ctrl.rb =================================================================== --- trunk/test/test-ctrl.rb 2009-03-11 23:42:06 UTC (rev 910) +++ trunk/test/test-ctrl.rb 2009-03-17 02:05:58 UTC (rev 911) @@ -27,6 +27,7 @@ puts "difference found at line #{i+1}" puts "got : #{got_lines[i]}" puts "need: #{correct_lines[i]}" + File.open(outfile, 'w') {|f| f.puts got_lines} return false end end From nobody at rubyforge.org Tue Mar 17 06:22:52 2009 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Tue, 17 Mar 2009 06:22:52 -0400 (EDT) Subject: [Ruby-debug-commits] [912] trunk/cli/ruby-debug/commands/irb.rb: Add "next" and "step" commands in irb Message-ID: <20090317102252.1DEFB18580F7@rubyforge.org> Revision: 912 Author: rockyb Date: 2009-03-17 06:22:51 -0400 (Tue, 17 Mar 2009) Log Message: ----------- Add "next" and "step" commands in irb Modified Paths: -------------- trunk/cli/ruby-debug/commands/irb.rb Modified: trunk/cli/ruby-debug/commands/irb.rb =================================================================== --- trunk/cli/ruby-debug/commands/irb.rb 2009-03-17 02:05:58 UTC (rev 911) +++ trunk/cli/ruby-debug/commands/irb.rb 2009-03-17 10:22:51 UTC (rev 912) @@ -7,8 +7,20 @@ throw :IRB_EXIT, :cont end end + class Next # :nodoc: + def self.execute(conf) + throw :IRB_EXIT, :next + end + end + class Step # :nodoc: + def self.execute(conf) + throw :IRB_EXIT, :step + end + end end ExtendCommandBundle.def_extend_command "cont", :Continue + ExtendCommandBundle.def_extend_command "next", :Next + ExtendCommandBundle.def_extend_command "step", :Step def self.start_session(binding) unless @__initialized @@ -64,8 +76,17 @@ $rdebug_state = @state if add_debugging $rdebug_in_irb = true cont = IRB.start_session(get_binding) - if cont == :cont + case cont + when :cont @state.proceed + when :step + force = Command.settings[:force_stepping] + @state.context.step(1, force) + @state.proceed + when :next + force = Command.settings[:force_stepping] + @state.context.step_over(1, @state.frame_pos, force) + @state.proceed else file = @state.context.frame_file(0) line = @state.context.frame_line(0) From nobody at rubyforge.org Tue Mar 17 06:30:11 2009 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Tue, 17 Mar 2009 06:30:11 -0400 (EDT) Subject: [Ruby-debug-commits] [913] trunk/cli/ruby-debug/commands/irb.rb: Fix some irb -d breakage when set autoirb is in effect Message-ID: <20090317103011.6A1C218580F6@rubyforge.org> Revision: 913 Author: rockyb Date: 2009-03-17 06:30:10 -0400 (Tue, 17 Mar 2009) Log Message: ----------- Fix some irb -d breakage when set autoirb is in effect Modified Paths: -------------- trunk/cli/ruby-debug/commands/irb.rb Modified: trunk/cli/ruby-debug/commands/irb.rb =================================================================== --- trunk/cli/ruby-debug/commands/irb.rb 2009-03-17 10:22:51 UTC (rev 912) +++ trunk/cli/ruby-debug/commands/irb.rb 2009-03-17 10:30:10 UTC (rev 913) @@ -72,7 +72,7 @@ throw :IRB_EXIT, :cont if $rdebug_in_irb end - add_debugging = '-d' == @match[1] + add_debugging = @match.is_a?(Array) && '-d' == @match[1] $rdebug_state = @state if add_debugging $rdebug_in_irb = true cont = IRB.start_session(get_binding) From nobody at rubyforge.org Tue Mar 17 06:33:56 2009 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Tue, 17 Mar 2009 06:33:56 -0400 (EDT) Subject: [Ruby-debug-commits] [914] trunk/cli/ruby-debug/commands/irb.rb: irb "next" -> "n" since "next" is a reserved word. Message-ID: <20090317103356.4178718580F6@rubyforge.org> Revision: 914 Author: rockyb Date: 2009-03-17 06:33:56 -0400 (Tue, 17 Mar 2009) Log Message: ----------- irb "next" -> "n" since "next" is a reserved word. Modified Paths: -------------- trunk/cli/ruby-debug/commands/irb.rb Modified: trunk/cli/ruby-debug/commands/irb.rb =================================================================== --- trunk/cli/ruby-debug/commands/irb.rb 2009-03-17 10:30:10 UTC (rev 913) +++ trunk/cli/ruby-debug/commands/irb.rb 2009-03-17 10:33:56 UTC (rev 914) @@ -19,7 +19,7 @@ end end ExtendCommandBundle.def_extend_command "cont", :Continue - ExtendCommandBundle.def_extend_command "next", :Next + ExtendCommandBundle.def_extend_command "n", :Next ExtendCommandBundle.def_extend_command "step", :Step def self.start_session(binding) From nobody at rubyforge.org Tue Mar 17 06:35:55 2009 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Tue, 17 Mar 2009 06:35:55 -0400 (EDT) Subject: [Ruby-debug-commits] [915] trunk/cli/ruby-debug/commands/irb.rb: Document irb additions old and new Message-ID: <20090317103555.D374818580F6@rubyforge.org> Revision: 915 Author: rockyb Date: 2009-03-17 06:35:55 -0400 (Tue, 17 Mar 2009) Log Message: ----------- Document irb additions old and new Modified Paths: -------------- trunk/cli/ruby-debug/commands/irb.rb Modified: trunk/cli/ruby-debug/commands/irb.rb =================================================================== --- trunk/cli/ruby-debug/commands/irb.rb 2009-03-17 10:33:56 UTC (rev 914) +++ trunk/cli/ruby-debug/commands/irb.rb 2009-03-17 10:35:55 UTC (rev 915) @@ -110,7 +110,11 @@ irb [-d]\tstarts an Interactive Ruby (IRB) session. If -d is added you can get access to debugger state via the global variable -$RDEBUG_state. +$RDEBUG_state. + +irb is extended with methods "cont", "n" and "step" which +run the corresponding debugger commands. In contrast to the real debugger +commands these commands don't allow command arguments. } end end From nobody at rubyforge.org Sat Mar 28 23:00:18 2009 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Sat, 28 Mar 2009 23:00:18 -0400 (EDT) Subject: [Ruby-debug-commits] [916] trunk: Canonicalize breakpoint locations a little better. Message-ID: <20090329030018.F0D9D1978561@rubyforge.org> Revision: 916 Author: rockyb Date: 2009-03-28 23:00:18 -0400 (Sat, 28 Mar 2009) Log Message: ----------- Canonicalize breakpoint locations a little better. More work should be done and more work should be done on the testing side too. Modified Paths: -------------- trunk/ChangeLog trunk/cli/ruby-debug/commands/breakpoints.rb trunk/lib/ChangeLog trunk/test/data/annotate.right trunk/test/data/breakpoints.right trunk/test/data/emacs_basic.right trunk/test/data/info.right trunk/test/data/save.right Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2009-03-17 10:35:55 UTC (rev 915) +++ trunk/ChangeLog 2009-03-29 03:00:18 UTC (rev 916) @@ -1,3 +1,30 @@ +2009-03-17 10:22 Rocky Bernstein + + * cli/ruby-debug/commands/irb.rb: Add "next" and "step" commands in + irb + +2009-03-17 02:05 Rocky Bernstein + + * cli/ruby-debug/commands/irb.rb, cli/ruby-debug/processor.rb, + configure.ac, test/data/ctrl.right, test/data/post-mortem.right, + test/test-ctrl.rb: configure.ac: in 0.10.4vc now. Add -d in irb + facilitate debugger testing via global $rdebug_state. Also set + $rdebug_state in debuggertesting is set. + "kill" is now allowed as a control command, this adjusts output. + and this changes + +2009-03-11 23:42 Rocky Bernstein + + * ChangeLog, doc/ruby-debug.texi, lib/ChangeLog: update texinfo for + catch + +2009-03-11 18:57 Rocky Bernstein + + * cli/ruby-debug/commands/catchpoint.rb, emacs/rdebug-core.el, + emacs/rdebug-track.el, emacs/test/test-regexp.el: Update "catch" + command help string. Reindent some emacs files to make tests + happy. + 2009-02-10 04:32 Rocky Bernstein * emacs/rdebug-core.el: Remove the annoying disappearing command Modified: trunk/cli/ruby-debug/commands/breakpoints.rb =================================================================== --- trunk/cli/ruby-debug/commands/breakpoints.rb 2009-03-17 10:35:55 UTC (rev 915) +++ trunk/cli/ruby-debug/commands/breakpoints.rb 2009-03-29 03:00:18 UTC (rev 916) @@ -81,7 +81,7 @@ errmsg "We are not in a state we can add breakpoints.\n" return end - b = Debugger.add_breakpoint file, line, expr + b = Debugger.add_breakpoint brkpt_filename, line, expr print "Breakpoint %d file %s, line %s\n", b.id, brkpt_filename, line.to_s unless syntax_valid?(expr) errmsg("Expression \"#{expr}\" syntactically incorrect; breakpoint disabled.\n") Modified: trunk/lib/ChangeLog =================================================================== --- trunk/lib/ChangeLog 2009-03-17 10:35:55 UTC (rev 915) +++ trunk/lib/ChangeLog 2009-03-29 03:00:18 UTC (rev 916) @@ -1,3 +1,7 @@ +2009-03-11 23:42 Rocky Bernstein + + * ChangeLog: update texinfo for catch + 2008-11-25 02:43 Rocky Bernstein * ChangeLog: Frame without a frame number means frame 0, same as Modified: trunk/test/data/annotate.right =================================================================== --- trunk/test/data/annotate.right 2009-03-17 10:35:55 UTC (rev 915) +++ trunk/test/data/annotate.right 2009-03-29 03:00:18 UTC (rev 916) @@ -34,7 +34,7 @@ Breakpoint 1 file ./gcd.rb, line 10 breakpoints Num Enb What - 1 y at gcd.rb:10 + 1 y at ./gcd.rb:10  # # "delete" should trigger break annotation # delete 1 @@ -59,7 +59,7 @@ Breakpoint 2 file ./gcd.rb, line 12 breakpoints Num Enb What - 2 y at gcd.rb:12 + 2 y at ./gcd.rb:12  # # "display" should trigger display annotation # display 1+2 @@ -78,7 +78,7 @@ stopped breakpoints Num Enb What - 2 y at gcd.rb:12 + 2 y at ./gcd.rb:12  display  @@ -131,7 +131,7 @@ Breakpoint 3 file bogus, line 5 breakpoints Num Enb What - 2 y at gcd.rb:12 + 2 y at ./gcd.rb:12 3 y at bogus:5  display Modified: trunk/test/data/breakpoints.right =================================================================== --- trunk/test/data/breakpoints.right 2009-03-17 10:35:55 UTC (rev 915) +++ trunk/test/data/breakpoints.right 2009-03-29 03:00:18 UTC (rev 916) @@ -28,9 +28,9 @@ Breakpoint 3 at Object::gcd # info break Num Enb What - 1 y at gcd.rb:6 + 1 y at ./gcd.rb:6 breakpoint already hit 1 time - 2 y at gcd.rb:10 + 2 y at ./gcd.rb:10 3 y at Object:gcd # continue Breakpoint 2 at gcd.rb:10 @@ -47,9 +47,9 @@ def gcd(a, b) # info break Num Enb What - 1 y at gcd.rb:6 + 1 y at ./gcd.rb:6 breakpoint already hit 1 time - 2 y at gcd.rb:10 + 2 y at ./gcd.rb:10 breakpoint already hit 1 time 3 y at Object:gcd breakpoint already hit 1 time @@ -57,18 +57,18 @@ *** Invalid breakpoint location: foo. # info break Num Enb What - 1 y at gcd.rb:6 + 1 y at ./gcd.rb:6 breakpoint already hit 1 time - 2 y at gcd.rb:10 + 2 y at ./gcd.rb:10 breakpoint already hit 1 time 3 y at Object:gcd breakpoint already hit 1 time # disable 1 # info break Num Enb What - 1 n at gcd.rb:6 + 1 n at ./gcd.rb:6 breakpoint already hit 1 time - 2 y at gcd.rb:10 + 2 y at ./gcd.rb:10 breakpoint already hit 1 time 3 y at Object:gcd breakpoint already hit 1 time @@ -76,7 +76,7 @@ # # We should see breakpoint 2 but not 1 # info break Num Enb What - 2 y at gcd.rb:10 + 2 y at ./gcd.rb:10 breakpoint already hit 1 time 3 y at Object:gcd breakpoint already hit 1 time Modified: trunk/test/data/emacs_basic.right =================================================================== --- trunk/test/data/emacs_basic.right 2009-03-17 10:35:55 UTC (rev 915) +++ trunk/test/data/emacs_basic.right 2009-03-29 03:00:18 UTC (rev 916) @@ -28,9 +28,9 @@ Breakpoint 3 at Object::gcd # info break Num Enb What - 1 y at gcd.rb:6 + 1 y at ./gcd.rb:6 breakpoint already hit 1 time - 2 y at gcd.rb:10 + 2 y at ./gcd.rb:10 3 y at Object:gcd # continue Breakpoint 2 at gcd.rb:10 @@ -47,9 +47,9 @@ def gcd(a, b) # info break Num Enb What - 1 y at gcd.rb:6 + 1 y at ./gcd.rb:6 breakpoint already hit 1 time - 2 y at gcd.rb:10 + 2 y at ./gcd.rb:10 breakpoint already hit 1 time 3 y at Object:gcd breakpoint already hit 1 time @@ -57,18 +57,18 @@ *** Invalid breakpoint location: foo. # info break Num Enb What - 1 y at gcd.rb:6 + 1 y at ./gcd.rb:6 breakpoint already hit 1 time - 2 y at gcd.rb:10 + 2 y at ./gcd.rb:10 breakpoint already hit 1 time 3 y at Object:gcd breakpoint already hit 1 time # disable 1 # info break Num Enb What - 1 n at gcd.rb:6 + 1 n at ./gcd.rb:6 breakpoint already hit 1 time - 2 y at gcd.rb:10 + 2 y at ./gcd.rb:10 breakpoint already hit 1 time 3 y at Object:gcd breakpoint already hit 1 time @@ -79,7 +79,7 @@ # # We should see breakpoint 2 but not 1 # info break Num Enb What - 2 y at gcd.rb:10 + 2 y at ./gcd.rb:10 breakpoint already hit 1 time 3 y at Object:gcd breakpoint already hit 1 time Modified: trunk/test/data/info.right =================================================================== --- trunk/test/data/info.right 2009-03-17 10:35:55 UTC (rev 915) +++ trunk/test/data/info.right 2009-03-29 03:00:18 UTC (rev 916) @@ -49,15 +49,15 @@ *** No breakpoints found among list given. # info break 1 Num Enb What - 1 y at gcd.rb:10 + 1 y at ./gcd.rb:10 # info break 1 2 Num Enb What - 1 y at gcd.rb:10 - 2 y at gcd.rb:12 + 1 y at ./gcd.rb:10 + 2 y at ./gcd.rb:12 # info break Num Enb What - 1 y at gcd.rb:10 - 2 y at gcd.rb:12 + 1 y at ./gcd.rb:10 + 2 y at ./gcd.rb:12 # info file ./gcd.rb break File ./gcd.rb breakpoint line numbers: Modified: trunk/test/data/save.right =================================================================== --- trunk/test/data/save.right 2009-03-17 10:35:55 UTC (rev 915) +++ trunk/test/data/save.right 2009-03-29 03:00:18 UTC (rev 916) @@ -40,14 +40,14 @@ # save temp Saved to 'temp' # eval File.open("temp").readlines -["break gcd.rb:10\n", "catch RuntimeError\n", "set autoeval off\n", "set basename on\n", "set debuggertesting on\n", "set autolist off\n", "set autoirb off\n"] +["break ./gcd.rb:10\n", "catch RuntimeError\n", "set autoeval off\n", "set basename on\n", "set debuggertesting on\n", "set autolist off\n", "set autoirb off\n"] # # FIXME: The below is broken # ## Change parameters above # ## catch RuntimeError off # ## info catch # ##set listsize 55 # source temp -Breakpoint 2 file gcd.rb, line 10 +Breakpoint 2 file /src/external-vcs/ruby-debug/trunk/test/gcd.rb, line 10 Catch exception RuntimeError. autoeval is off. basename is on. From nobody at rubyforge.org Tue Mar 31 05:49:40 2009 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Tue, 31 Mar 2009 05:49:40 -0400 (EDT) Subject: [Ruby-debug-commits] [917] trunk/emacs/rdebug-locring.el: Comment change Message-ID: <20090331094940.918A71858125@rubyforge.org> Revision: 917 Author: rockyb Date: 2009-03-31 05:49:37 -0400 (Tue, 31 Mar 2009) Log Message: ----------- Comment change Modified Paths: -------------- trunk/emacs/rdebug-locring.el Modified: trunk/emacs/rdebug-locring.el =================================================================== --- trunk/emacs/rdebug-locring.el 2009-03-29 03:00:18 UTC (rev 916) +++ trunk/emacs/rdebug-locring.el 2009-03-31 09:49:37 UTC (rev 917) @@ -1,6 +1,6 @@ ;;; rdebug-locring.el --- Ruby debugger location ring -;; Copyright (C) 2008 Rocky Bernstein (rocky at gnu.org) +;; Copyright (C) 2008, 2009 Rocky Bernstein (rocky at gnu.org) ;; Copyright (C) 2008 Anders Lindgren ;; $Id$ @@ -22,8 +22,8 @@ ;;; Commentary: -;; This file contains code dealing with filter of debugger output a large -;; part of which may contain annotations. +;; This file manages a ring of (recently stopped) positions to allow +;; the programmer to move back and forth between them. ;;; Code: