 
 We look first to visit the file indicated in the trace.
 
-Failing that, we look for the most recently visited python-mode buffer
-with the same name or having 
-having the named function.
+Failing that, we look for the most recently visited ruby-mode buffer
+with the same name or having having the named function.
 
 If we're unable find the source code we return a string describing the
 problem as best as we can determine."


;;;###autoload
(defun rdebug (command-line)
  "Run rdebug on program FILE in buffer *rdebug-cmd-FILE*.
The directory containing FILE becomes the initial working directory
and source-file directory for your debugger.

The custom variable `gud-rdebug-command-name' sets the pattern used
to invoke pydb.

If `rdebug-many-windows' is nil (the default value) then pydb just
starts with two windows: one displaying the GUD buffer and the
other with the source file with the main routine of the inferior.

If `rdebug-many-windows' is t, regardless of the value of the layout
below will appear.

+----------------------------------------------------------------------+
|                               GDB Toolbar                            |
+-----------------------------------+----------------------------------+
| GUD buffer (I/O of rdebug)        | Variables buffer                 |
|                                   | RET rdebug-variables-edi         |
|                                   |                                  |
|                                   |                                  |
+-----------------------------------+----------------------------------+
| Source buffer                     | Output buffer                    |
|                                   |                                  |
+-----------------------------------+----------------------------------+
| Stack buffer                      | Breakpoints buffer               |
| RET rdebug-goto-stack-frame       | SPC  rdebug-toggle-breakpoint    |
|                                   | RET  rdebug-goto-breakpoint      |
|                                   | DEL  rdebug-delete-breakpoint    |
+-----------------------------------+----------------------------------+
"
  (interactive
   (list (gud-query-cmdline 'rdebug)))


  "Regular expression used to find a file location given by rdebug.

Program-location lines look like this:
   /tmp/gcd.rb:29:  gcd
   /tmp/gcd.rb:29
   \\sources\\capfilterscanner\\capanalyzer.rb:3:  <module>
")

(defconst rdebug-marker-regexp-file-group 2
