From nobody at rubyforge.org Mon Aug 2 08:51:17 2010 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Mon, 2 Aug 2010 08:51:17 -0400 (EDT) Subject: [Ruby-debug-commits] [941] trunk: Go over installation instructions for Emacs. Message-ID: <20100802125117.CD8511858376@rubyforge.org> Revision: 941 Author: rockyb Date: 2010-08-02 08:51:17 -0400 (Mon, 02 Aug 2010) Log Message: ----------- Go over installation instructions for Emacs. Add a basic files, README, INSTALL and AUTHORS. Change version from 0.10.4vc to 0.10.4rc1 Modified Paths: -------------- trunk/CHANGES trunk/ChangeLog trunk/INSTALL.SVN trunk/configure.ac trunk/emacs/Makefile.am trunk/emacs/rdebug.el trunk/lib/ChangeLog Added Paths: ----------- trunk/emacs/AUTHORS trunk/emacs/INSTALL trunk/emacs/README Modified: trunk/CHANGES =================================================================== --- trunk/CHANGES 2010-05-26 20:11:28 UTC (rev 940) +++ trunk/CHANGES 2010-08-02 12:51:17 UTC (rev 941) @@ -8,6 +8,7 @@ - "quit!" is same as "quit unconditionally" - irb improvements: Access to non-executing rdebug commands inside irb via "dbgr" method + - For emacs package: add README, INSTALL, AUTHORS. 0.10.3 11/17/08 Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-05-26 20:11:28 UTC (rev 940) +++ trunk/ChangeLog 2010-08-02 12:51:17 UTC (rev 941) @@ -1,31 +1,62 @@ +2010-05-26 20:11 Rocky Bernstein + + * cli/ruby-debug/commands/eval.rb, cli/ruby-debug/commands/kill.rb, + test/.cvsignore, test/data/except-bug1.cmd, + test/data/except-bug1.right, test/except-bug1.rb, + test/test-except-bug1.rb: Another bug in showing variables in + post-mortem. Not sure if this is the best fix though. + kill.rb: fix syntax bug + +2010-05-06 21:59 Rocky Bernstein + + * ChangeLog, cli/ruby-debug/commands/frame.rb, lib/ChangeLog, + test/data/catch.right: More explicit about incomplete saved + frames. Now reads: + Warning: saved frames may be incomplete; + compare debugger backtrace (bt) with Ruby caller(0). + +2010-04-19 02:46 Rocky Bernstein + + * CHANGES, ChangeLog: What's up. + 2010-04-19 02:40 Rocky Bernstein - * Document irb "dbgr" command. rbdbgr -> rdebug in irb variables. + * cli/ruby-debug/commands/irb.rb, cli/ruby-debug/processor.rb: + Document irb "dbgr" command. rbdbgr -> rdebug in irb variables. 2010-04-18 14:52 Rocky Bernstein - * Forgot to add file to test against + * test/file with space.rb: Forgot to add file to test against 2010-04-18 14:49 Rocky Bernstein - * Add test for filename with embedded space. + * CHANGES, bin/rdebug, test/data/file-with-space.cmd, + test/data/file-with-space.right, test/tdebug.rb, + test/test-file-with-space.rb: Add test for filename with embedded + space. 2010-04-18 13:49 Rocky Bernstein - * Tolerate Ruby without readline better. Tracker #23925 + * cli/ruby-debug/commands/show.rb, cli/ruby-debug/interface.rb, + test/data/setshow.cmd, test/data/setshow.right: Tolerate Ruby + without readline better. Tracker #23925 2010-04-18 07:18 Rocky Bernstein - * Fix bug in "reload" command. tracker #26130 + * CHANGES, Rakefile, lib/ruby-debug-base.rb, + test/base/reload_bug.rb: Fix bug in "reload" command. tracker + #26130 2010-04-15 18:48 Rocky Bernstein - * Fix bug if info not given with any parameters. rubyforge bug - #26895. + * ChangeLog, cli/ruby-debug/commands/info.rb, test/data/info.cmd, + test/data/info.right: Fix bug if info not given with any + parameters. rubyforge bug #26895. 2010-04-15 18:45 Rocky Bernstein - * Had forgot to add Ruby file to test brkpt-class bug. + * test/brkpt-class-bug.rb: Had forgot to add Ruby file to test + brkpt-class bug. 2010-03-21 23:09 Rocky Bernstein Modified: trunk/INSTALL.SVN =================================================================== --- trunk/INSTALL.SVN 2010-05-26 20:11:28 UTC (rev 940) +++ trunk/INSTALL.SVN 2010-08-02 12:51:17 UTC (rev 941) @@ -21,6 +21,7 @@ - automake - GNU Make - texinfo + - texi2html 1. Basic package checkout and installation @@ -91,19 +92,10 @@ 4. Building the documentation and testing/installing Emacs files -Of course, I recommend you read the ruby-debug manual that comes with -the package. If you have the prerequisites described above, run this -once: - sh ./autogen.sh - -Then run: - ./configure - make - make test # Runs Emacs regression tests - sudo make install # Or arrange to do this as root +See INSTALL in the emacs directory. -Microsoft Windows +5. Microsoft Windows A problem here seems to be that the "One-click" install is compiled using Microsoft Visual Studio C 6 which is not sold anymore and is Modified: trunk/configure.ac =================================================================== --- trunk/configure.ac 2010-05-26 20:11:28 UTC (rev 940) +++ trunk/configure.ac 2010-08-02 12:51:17 UTC (rev 941) @@ -1,4 +1,4 @@ -AC_INIT(ruby-debug-extra, 0.10.4vc,) +AC_INIT(ruby-debug-extra, 0.10.4rc1,) AC_CONFIG_SRCDIR(doc/ruby-debug.texi) AM_INIT_AUTOMAKE Added: trunk/emacs/AUTHORS =================================================================== --- trunk/emacs/AUTHORS (rev 0) +++ trunk/emacs/AUTHORS 2010-08-02 12:51:17 UTC (rev 941) @@ -0,0 +1,2 @@ +Anders Lindregen +Rocky Bernstein Added: trunk/emacs/INSTALL =================================================================== --- trunk/emacs/INSTALL (rev 0) +++ trunk/emacs/INSTALL 2010-08-02 12:51:17 UTC (rev 941) @@ -0,0 +1,41 @@ +If you want to build the documentation and install Emacs files, you need: + + - a POSIX shell + - autoconf + - automake + - GNU Make + - texinfo + - texi2html + +Download the ruby-debug-extra tarball from rubyforge +http://rubyforge.org/frs/?group_id=1900&release_id=28306 + +For example for the 0.10.4rc1 release: + +http://rubyforge.org/frs/download.php/46883/ruby-debug-extra-0.10.4rc1.tar.gz + +Untar this, run configure, make, make check and make install. For example: + + tar -xpf ruby-debug-extra-0.10.4rc1.tar.gz + cd ruby-debug-extra-0.10.4rc1 + sh ./configure + make && make check + sudo make install # or as root: make install + +configure --help gives customization help. + +Environment variable EMACS can be used to find which emacs to use, +should need to specify which emacs to use. + +After the package is installed in a place it is found inside emacs, +place one either of the lines in an appropriate init file (for example +~/.emacs) + + (require 'rdebug) +or + (autoload 'rdebug "rdebug" "ruby-debug interface" t) + + +See the README for what this is about or the rdebug-emacs manaul that +comes with this package. + Modified: trunk/emacs/Makefile.am =================================================================== --- trunk/emacs/Makefile.am 2010-05-26 20:11:28 UTC (rev 940) +++ trunk/emacs/Makefile.am 2010-08-02 12:51:17 UTC (rev 941) @@ -48,7 +48,7 @@ test/test-regexp.el \ test/test-shortkey.el -EXTRA_DIST = $(lisp_files) $(check_DATA) +EXTRA_DIST = $(lisp_files) $(check_DATA) README AUTHORS INSTALL ELCFILES = rdebug.elc \ rdebug-annotate.elc \ rdebug-breaks.elc \ Added: trunk/emacs/README =================================================================== --- trunk/emacs/README (rev 0) +++ trunk/emacs/README 2010-08-02 12:51:17 UTC (rev 941) @@ -0,0 +1,43 @@ +This is a full-blown debugger user interface to the Ruby rdebug +debugger shell. + +The main features are: + + * Window layout with dedicated windows for: + + Local and member variables + + Stack trace + + Display expressions + + Breakpoints + + Output + + Debugger Shell + + * Source-level debugging: + + The current source file is shown and current line is marked. + + Function keys bindings for effective stepping in the source code. + + A "Debugger" menu for easy access to all features. + + * A number of predefined window layouts and key bindings are + supplied, including binding that emulate Eclipse and NetBeans. + The user can easily provide their own window layout and + settings. + +The default window layout looks like the following: + ++----------------------------------------------------------------------+ +| Toolbar | ++-----------------------------------+----------------------------------+ +| Debugger Stack Buffer | Local Variables buffer | ++-----------------------------------+----------------------------------+ +| | +| Source buffer | +| | ++----------------------------------------------------------------------+ +| Debugger Command Buffer | ++----------------------------------------------------------------------+ + +Other pre-defined window layouts available as well. See the "Window +Layout" dropdown under the "Debugger" menu. + +See INSTALL for how to install this Emacs package. + +Also read the rdebug-emacs manual that comes with this package. Modified: trunk/emacs/rdebug.el =================================================================== --- trunk/emacs/rdebug.el 2010-05-26 20:11:28 UTC (rev 940) +++ trunk/emacs/rdebug.el 2010-08-02 12:51:17 UTC (rev 941) @@ -1,6 +1,6 @@ ;;; rdebug.el --- Ruby debugger user interface, startup file. -;; Copyright (C) 2006, 2007, 2008 Rocky Bernstein (rocky at gnu.org) +;; Copyright (C) 2006, 2007, 2008, 2010 Rocky Bernstein (rocky at gnu.org) ;; Copyright (C) 2007, 2008 Anders Lindgren ;; $Id: rdebug.el 409 2007-12-14 02:36:37Z rockyb $ @@ -53,25 +53,27 @@ ;; +----------------------------------------------------------------------+ ;; | Toolbar | ;; +-----------------------------------+----------------------------------+ -;; | Debugger shell | Variables buffer | +;; | Debugger Stack Buffer | Local Variables buffer | ;; +-----------------------------------+----------------------------------+ -;; | | | -;; | Source buffer | Output buffer | -;; | | | -;; +-----------------------------------+----------------------------------+ -;; | Stack buffer | Breakpoints buffer | -;; +-----------------------------------+----------------------------------+ +;; | | +;; | Source buffer | +;; | | +;; +----------------------------------------------------------------------+ +;; | Debugger Command Buffer | +;; +----------------------------------------------------------------------+ ;; ;; ;; Installation: ;; -;; To use this package, place the following line in an appropriate -;; init file (for example ~/.emacs): +;; To use this package, place the either of following lines in an +;; appropriate init file (for example ~/.emacs): ;; ;; (require 'rdebug) -;; +;; or +;; (autoload 'rdebug "rdebug" "ruby-debug interface" t) + ;; ;; History and Future: ;; Modified: trunk/lib/ChangeLog =================================================================== --- trunk/lib/ChangeLog 2010-05-26 20:11:28 UTC (rev 940) +++ trunk/lib/ChangeLog 2010-08-02 12:51:17 UTC (rev 941) @@ -1,3 +1,10 @@ +2010-05-06 21:59 Rocky Bernstein + + * ChangeLog: More explicit about incomplete saved frames. Now + reads: + Warning: saved frames may be incomplete; + compare debugger backtrace (bt) with Ruby caller(0). + 2010-04-18 07:18 Rocky Bernstein * ruby-debug-base.rb: Fix bug in "reload" command. tracker #26130 From nobody at rubyforge.org Mon Aug 2 13:45:31 2010 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Mon, 2 Aug 2010 13:45:31 -0400 (EDT) Subject: [Ruby-debug-commits] [942] trunk: More small changes to docs. Message-ID: <20100802174531.D99361858361@rubyforge.org> Revision: 942 Author: rockyb Date: 2010-08-02 13:45:31 -0400 (Mon, 02 Aug 2010) Log Message: ----------- More small changes to docs. Modified Paths: -------------- trunk/doc/rdebug-emacs.texi trunk/emacs/INSTALL trunk/emacs/README Modified: trunk/doc/rdebug-emacs.texi =================================================================== --- trunk/doc/rdebug-emacs.texi 2010-08-02 12:51:17 UTC (rev 941) +++ trunk/doc/rdebug-emacs.texi 2010-08-02 17:45:31 UTC (rev 942) @@ -26,7 +26,7 @@ @end direntry @titlepage - at title Debugging with @code{ruby-debug} inside GNU Emacs Version @value{RDEBUG_EMACS_VERSION} + at title Debugging with @code{rdebug} from GNU Emacs @sp 1 @subtitle @value{EDITION} Edition @subtitle @value{UPDATED-MONTH} @@ -82,11 +82,11 @@ @end detailmenu @end menu -This file describes ruby-debug, the Ruby Debugger, -version @value{RDEBUG_EMACS_VERSION} +This file describes @code{rdebug}, the Emacs interface to Ruby +Debugger, @code{ruby-debug}, version @value{RDEBUG_EMACS_VERSION} This is the @value{EDITION} Edition, @value{UPDATED} - at c Copyright (C) 2007 ... + at c Copyright (C) 2007, 2010 ... @c @node GNU Emacs @c @chapter Using @code{ruby-debug} from GNU Emacs @@ -127,19 +127,58 @@ @node Installation, Emacs rdebug, Getting started, Getting started @section Installation -To use this interface, load the file @code{rdebug.el}. This file is a +If you want to build the documentation and install Emacs files, you need: + + at itemize @bullet + at item a POSIX shell + at item GNU autoconf + at item GNU automake + at item GNU Make + at item texinfo + at item texi2html + at end itemize + +Download the ruby-debug-extra tarball from rubyforge + at url{http://rubyforge.org/frs/?group_id=1900&release_id=28306} + +For example for the 0.10.3 release: + + at smallexample + wget http://rubyforge.org/frs/download.php/46883/ruby-debug-extra-0.10.3.tar.gz + at end smallexample + +Untar this, run configure, make, make check and make install. For example: + + at smallexample + $ tar -xpf ruby-debug-extra-0.10.3.tar.gz + $ cd ruby-debug-extra-0.10.3 + $ sh ./configure + $ make && make check + $ sudo make install # or as root: make install + at end smallexample + + at code{configure --help} gives customization help. + +Environment variable @code{EMACS} can be used to find which emacs to use, +should need to specify which emacs to use. + +After installing the Emacs code on your computer, to use the interface +inside Emacs load the file @code{rdebug.el}. This file is a light-weight file, basically it only contains a handful of @code{autoload} directives. -For example, you can place the following in your @code{~/.emacs} file: +For example, you can place the either of the following in your @code{~/.emacs} file: @smallexample (require 'rdebug) @end smallexample +or + at smallexample + (autoload 'rdebug "rdebug" "ruby-debug interface" t) + at end smallexample In addition, you must have Ruby and ruby-debug installed. - @node Emacs rdebug, Emacs shell tracking mode, Installation, Getting started @section Emacs rdebug @@ -187,9 +226,17 @@ To enable, this run @kbd{M-x turn-on-rdebug-track-mode}. There is some overhead involved in scanning output, so if you are not debugging Ruby programs you probably want to turn this off which can be done via the - at code{M-x turn-off-rdebugtrack} command. + at code{M-x turn-off-rdebugtrack} command. +This command doesn't set up the various buffers such as tracking local +variables and the call stack. A more ambitious takeover of the shell +which does set up these buffers is can be done via @kbd{M-x +turn-on-rdebug-track-mode}. A name of the program is solicited. This +is use do make and association between the buffers. After this is +done, you might not be able to use the shell for anything other than +the debug session. + @node Configurating this package, , Emacs shell tracking mode, Getting started @section Configurating this package @@ -214,20 +261,19 @@ +----------------------------------------------------------------------+ | Toolbar | +-----------------------------------+----------------------------------+ -| | | -| Debugger shell | Variables buffer | -| | | +| Debugger Stack Buffer | Local Variables buffer | +-----------------------------------+----------------------------------+ -| | | -| Source buffer | Output buffer | -| | | -+-----------------------------------+----------------------------------+ -| | | -| Stack buffer | Breakpoints buffer | -| | | -+-----------------------------------+----------------------------------+ +| | +| Source buffer | +| | ++----------------------------------------------------------------------+ +| Debugger Command Buffer | ++----------------------------------------------------------------------+ @end verbatim +However there are other layouts available. Look at the ``Window +Layout'' drop-down list under the ``Debugger'' menu in the toolbar. + @section Activating Multi-window mode The variable @code{rdebug-many-windows} controls if multi-window mode Modified: trunk/emacs/INSTALL =================================================================== --- trunk/emacs/INSTALL 2010-08-02 12:51:17 UTC (rev 941) +++ trunk/emacs/INSTALL 2010-08-02 17:45:31 UTC (rev 942) @@ -12,15 +12,15 @@ For example for the 0.10.4rc1 release: -http://rubyforge.org/frs/download.php/46883/ruby-debug-extra-0.10.4rc1.tar.gz + wget http://rubyforge.org/frs/download.php/71864/ruby-debug-extra-0.10.4rc1.tar.gz Untar this, run configure, make, make check and make install. For example: - tar -xpf ruby-debug-extra-0.10.4rc1.tar.gz - cd ruby-debug-extra-0.10.4rc1 - sh ./configure - make && make check - sudo make install # or as root: make install + $ tar -xpf ruby-debug-extra-0.10.4rc1.tar.gz + $ cd ruby-debug-extra-0.10.4rc1 + $ sh ./configure + $ make && make check + $ sudo make install # or as root: make install configure --help gives customization help. Modified: trunk/emacs/README =================================================================== --- trunk/emacs/README 2010-08-02 12:51:17 UTC (rev 941) +++ trunk/emacs/README 2010-08-02 17:45:31 UTC (rev 942) @@ -36,7 +36,7 @@ +----------------------------------------------------------------------+ Other pre-defined window layouts available as well. See the "Window -Layout" dropdown under the "Debugger" menu. +Layout" drop-down list under the "Debugger" menu in the toolbar. See INSTALL for how to install this Emacs package. From nobody at rubyforge.org Mon Aug 2 14:03:38 2010 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Mon, 2 Aug 2010 14:03:38 -0400 (EDT) Subject: [Ruby-debug-commits] [943] trunk/doc/rdebug-emacs.texi: A couple more small emacs doc changes Message-ID: <20100802180338.E879C185836C@rubyforge.org> Revision: 943 Author: rockyb Date: 2010-08-02 14:03:38 -0400 (Mon, 02 Aug 2010) Log Message: ----------- A couple more small emacs doc changes Modified Paths: -------------- trunk/doc/rdebug-emacs.texi Modified: trunk/doc/rdebug-emacs.texi =================================================================== --- trunk/doc/rdebug-emacs.texi 2010-08-02 17:45:31 UTC (rev 942) +++ trunk/doc/rdebug-emacs.texi 2010-08-02 18:03:38 UTC (rev 943) @@ -36,7 +36,7 @@ @tex {\parskip=0pt \hfill (Send bugs and comments on ruby-debug to fill in...)\par -\hfill {\it Debugging with {\tt ruby-debug}\par +\hfill {\it Debugging with {\tt rdebug}\par \hfill \TeX{}info \texinfoversion\par } @end tex @@ -45,7 +45,7 @@ @page @node Top, Getting started, (dir), (dir) - at top Debugging with ruby-debug under GNU Emacs + at top Debugging with rdebug in GNU Emacs @menu * Getting started:: @@ -168,7 +168,6 @@ @code{autoload} directives. For example, you can place the either of the following in your @code{~/.emacs} file: - @smallexample (require 'rdebug) @end smallexample From nobody at rubyforge.org Mon Aug 2 15:07:05 2010 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Mon, 2 Aug 2010 15:07:05 -0400 (EDT) Subject: [Ruby-debug-commits] [944] trunk/doc/rdebug-emacs.texi: More small document changes Message-ID: <20100802190705.A11F71858367@rubyforge.org> Revision: 944 Author: rockyb Date: 2010-08-02 15:07:05 -0400 (Mon, 02 Aug 2010) Log Message: ----------- More small document changes Modified Paths: -------------- trunk/doc/rdebug-emacs.texi Modified: trunk/doc/rdebug-emacs.texi =================================================================== --- trunk/doc/rdebug-emacs.texi 2010-08-02 18:03:38 UTC (rev 943) +++ trunk/doc/rdebug-emacs.texi 2010-08-02 19:07:05 UTC (rev 944) @@ -121,7 +121,7 @@ * Installation:: How to install this package * Emacs rdebug:: Invoke the ruby debugger initially * Emacs shell tracking mode:: Entering rdebug from an existing shell buffer -* Configurating this package:: Introducing the configure system +* Emacs Customization:: Customizing beavior in Emacs @end menu @node Installation, Emacs rdebug, Getting started, Getting started @@ -131,11 +131,10 @@ @itemize @bullet @item a POSIX shell - at item GNU autoconf - at item GNU automake @item GNU Make @item texinfo @item texi2html + at item GNU Emacs @end itemize Download the ruby-debug-extra tarball from rubyforge @@ -163,11 +162,12 @@ should need to specify which emacs to use. After installing the Emacs code on your computer, to use the interface -inside Emacs load the file @code{rdebug.el}. This file is a -light-weight file, basically it only contains a handful of - at code{autoload} directives. +inside Emacs load the file @code{rdebug.el} as in @code{M-x +load-library rdebug}. This file is a light-weight file, basically it +only contains a handful of @code{autoload} directives. -For example, you can place the either of the following in your @code{~/.emacs} file: +If you want to automatically load this package, you can place the +either of the following in your @code{~/.emacs} file: @smallexample (require 'rdebug) @end smallexample @@ -209,7 +209,7 @@ way---for example, @kbd{C-c C-c} for an interrupt, @kbd{C-c C-z} for a stop. - at node Emacs shell tracking mode, Configurating this package, Emacs rdebug, Getting started + at node Emacs shell tracking mode, Emacs Customization, Emacs rdebug, Getting started @section Entering rdebug from an existing shell buffer Many times it's not feasible to enter the debugger from the outset. @@ -230,14 +230,14 @@ This command doesn't set up the various buffers such as tracking local variables and the call stack. A more ambitious takeover of the shell which does set up these buffers is can be done via @kbd{M-x -turn-on-rdebug-track-mode}. A name of the program is solicited. This -is use do make and association between the buffers. After this is -done, you might not be able to use the shell for anything other than -the debug session. +rdebug-track-attach}. A name of the program is solicited. This is used +to make and association between the buffers. After this is done, you +might not be able to use the shell for anything other than the debug +session. - at node Configurating this package, , Emacs shell tracking mode, Getting started - at section Configurating this package + at node Emacs Customization, , Emacs shell tracking mode, Getting started + at section Emacs Customization In this manual we present a number of @value{Emacs} lisp variables and functions that you can use to configure the debugger interface. In @@ -875,7 +875,7 @@ is replaced instead. @item Just pick a visible buffer to bury and replace. - @end enumerate + at end enumerate The commands are also have key bindings that end in an uppercase letter. This letter is given in parenthesis. When in one of the From nobody at rubyforge.org Mon Aug 2 22:53:11 2010 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Mon, 2 Aug 2010 22:53:11 -0400 (EDT) Subject: [Ruby-debug-commits] [945] trunk/emacs/rdebug-breaks.el: Off by one on showing breakpoint positions Message-ID: <20100803025311.E2A371858346@rubyforge.org> Revision: 945 Author: rockyb Date: 2010-08-02 22:53:11 -0400 (Mon, 02 Aug 2010) Log Message: ----------- Off by one on showing breakpoint positions Modified Paths: -------------- trunk/emacs/rdebug-breaks.el Modified: trunk/emacs/rdebug-breaks.el =================================================================== --- trunk/emacs/rdebug-breaks.el 2010-08-02 19:07:05 UTC (rev 944) +++ trunk/emacs/rdebug-breaks.el 2010-08-03 02:53:11 UTC (rev 945) @@ -129,7 +129,8 @@ 'keymap rdebug-breakpoint-mode-map))) (forward-line))) (goto-char (point-min)) - (forward-line (1- old-line-number)))) + (forward-line (1- old-line-number)) + )) (rdebug-breakpoint-parse-and-update-cache) (rdebug-breakpoint-update-icons (rdebug-breakpoint-all)))) @@ -368,7 +369,7 @@ (set-buffer buf) (save-excursion (goto-char (point-min)) - (forward-line (nth 4 entry)) + (forward-line (1- (nth 4 entry))) ;; Workaround for bug in `gdb-ui'. (It checks ;; `left-fringe-width' but it doesn't interpret the ;; `nil' value correctly. From nobody at rubyforge.org Fri Aug 13 01:32:24 2010 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Fri, 13 Aug 2010 01:32:24 -0400 (EDT) Subject: [Ruby-debug-commits] [946] trunk: Add Debugger.inside_emacs? Environment variable EMACS for inside Emacs is deprecated in favor of INSIDE_EMACS . Message-ID: <20100813053224.DE39E1858381@rubyforge.org> Revision: 946 Author: rockyb Date: 2010-08-13 01:32:24 -0400 (Fri, 13 Aug 2010) Log Message: ----------- Add Debugger.inside_emacs? Environment variable EMACS for inside Emacs is deprecated in favor of INSIDE_EMACS. Rubyforge #28465. Modified Paths: -------------- trunk/ChangeLog trunk/cli/ruby-debug/commands/frame.rb trunk/cli/ruby-debug/helper.rb trunk/cli/ruby-debug/processor.rb trunk/ext/ruby_debug.c trunk/lib/ChangeLog Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-08-03 02:53:11 UTC (rev 945) +++ trunk/ChangeLog 2010-08-13 05:32:24 UTC (rev 946) @@ -1,3 +1,29 @@ +2010-08-03 02:53 Rocky Bernstein + + * emacs/rdebug-breaks.el: Off by one on showing breakpoint + positions + +2010-08-02 19:07 Rocky Bernstein + + * doc/rdebug-emacs.texi: More small document changes + +2010-08-02 18:03 Rocky Bernstein + + * doc/rdebug-emacs.texi: A couple more small emacs doc changes + +2010-08-02 17:45 Rocky Bernstein + + * doc/rdebug-emacs.texi, emacs/INSTALL, emacs/README: More small + changes to docs. + +2010-08-02 12:51 Rocky Bernstein + + * CHANGES, ChangeLog, INSTALL.SVN, configure.ac, emacs/AUTHORS, + emacs/INSTALL, emacs/Makefile.am, emacs/README, emacs/rdebug.el, + lib/ChangeLog: Go over installation instructions for Emacs. + Add a basic files, README, INSTALL and AUTHORS. + Change version from 0.10.4vc to 0.10.4rc1 + 2010-05-26 20:11 Rocky Bernstein * cli/ruby-debug/commands/eval.rb, cli/ruby-debug/commands/kill.rb, Modified: trunk/cli/ruby-debug/commands/frame.rb =================================================================== --- trunk/cli/ruby-debug/commands/frame.rb 2010-08-03 02:53:11 UTC (rev 945) +++ trunk/cli/ruby-debug/commands/frame.rb 2010-08-13 05:32:24 UTC (rev 946) @@ -101,7 +101,7 @@ end end print file_line - if ENV['EMACS'] && adjust + if Debugger.inside_emacs? && adjust fmt = (Debugger.annotate.to_i > 1 ? "\032\032source %s:%d\n" : "\032\032%s:%d\n") print fmt % [CommandProcessor.canonic_file(file), line] Modified: trunk/cli/ruby-debug/helper.rb =================================================================== --- trunk/cli/ruby-debug/helper.rb 2010-08-03 02:53:11 UTC (rev 945) +++ trunk/cli/ruby-debug/helper.rb 2010-08-13 05:32:24 UTC (rev 946) @@ -1,5 +1,10 @@ module Debugger + def inside_emacs? + ENV['EMACS'] || ENV['INSIDE_EMACS'] + end + module_function :inside_emacs? + module ParseFunctions Position_regexp = '(?:(\d+)|(.+?)[:.#]([^.:\s]+))' Modified: trunk/cli/ruby-debug/processor.rb =================================================================== --- trunk/cli/ruby-debug/processor.rb 2010-08-03 02:53:11 UTC (rev 945) +++ trunk/cli/ruby-debug/processor.rb 2010-08-13 05:32:24 UTC (rev 946) @@ -103,7 +103,7 @@ # FIXME: use annotations routines if Debugger.annotate.to_i > 2 file_line = "\032\032source #{file_line}" - elsif ENV['EMACS'] + elsif Debugger.inside_emacs? file_line = "\032\032#{file_line}" end print file_line @@ -144,7 +144,7 @@ aprint 'stopped' if Debugger.annotate.to_i > 2 file = CommandProcessor.canonic_file(context.frame_file(0)) line = context.frame_line(0) - print afmt("%s:%d" % [file, line]) if ENV['EMACS'] + print afmt("%s:%d" % [file, line]) if Debugger.inside_emacs? print "Catchpoint at %s:%d: `%s' (%s)\n", file, line, excpt, excpt.class fs = context.stack_size tb = caller(0)[-fs..-1] Modified: trunk/ext/ruby_debug.c =================================================================== --- trunk/ext/ruby_debug.c 2010-08-03 02:53:11 UTC (rev 945) +++ trunk/ext/ruby_debug.c 2010-08-13 05:32:24 UTC (rev 946) @@ -6,7 +6,7 @@ #include #include -#define DEBUG_VERSION "0.10.4" +#define DEBUG_VERSION "0.10.4rc1" #ifdef _WIN32 Modified: trunk/lib/ChangeLog =================================================================== --- trunk/lib/ChangeLog 2010-08-03 02:53:11 UTC (rev 945) +++ trunk/lib/ChangeLog 2010-08-13 05:32:24 UTC (rev 946) @@ -1,3 +1,9 @@ +2010-08-02 12:51 Rocky Bernstein + + * ChangeLog: Go over installation instructions for Emacs. + Add a basic files, README, INSTALL and AUTHORS. + Change version from 0.10.4vc to 0.10.4rc1 + 2010-05-06 21:59 Rocky Bernstein * ChangeLog: More explicit about incomplete saved frames. Now From nobody at rubyforge.org Sat Aug 28 14:26:23 2010 From: nobody at rubyforge.org (nobody at rubyforge.org) Date: Sat, 28 Aug 2010 14:26:23 -0400 (EDT) Subject: [Ruby-debug-commits] [947] trunk/cli/ruby-debug/commands/frame.rb: Spelling mistake: resyncronization -> resynchronization Message-ID: <20100828182623.71883185837D@rubyforge.org> Revision: 947 Author: rockyb Date: 2010-08-28 14:26:23 -0400 (Sat, 28 Aug 2010) Log Message: ----------- Spelling mistake: resyncronization -> resynchronization Modified Paths: -------------- trunk/cli/ruby-debug/commands/frame.rb Modified: trunk/cli/ruby-debug/commands/frame.rb =================================================================== --- trunk/cli/ruby-debug/commands/frame.rb 2010-08-13 05:32:24 UTC (rev 946) +++ trunk/cli/ruby-debug/commands/frame.rb 2010-08-28 18:26:23 UTC (rev 947) @@ -290,10 +290,10 @@ Without an argument, the command prints the current stack frame. Since the current position is redisplayed, it may trigger a - resyncronization if there is a front end also watching over + resynchronization if there is a front end also watching over things. - If a thread number is given then we set the context for evaluating + If a thread number is given, then we set the context for evaluating expressions to that frame of that thread. } end