]> git.eshelyaron.com Git - emacs.git/commitdiff
(gud-pdb-marker-regexp): Allow : and \ in file name.
authorRichard M. Stallman <rms@gnu.org>
Wed, 18 Sep 2002 16:02:14 +0000 (16:02 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 18 Sep 2002 16:02:14 +0000 (16:02 +0000)
(pdb): In gud-remove, pass down the file name.

lisp/gud.el

index b1eee6fbff82bb6a3f633f9e13b44bbd80c606f7..c871a35f192551f9f7463ffb189bc14168a5c350 100644 (file)
@@ -1322,7 +1322,7 @@ and source-file directory for your debugger."
 ;; Last group is for return value, e.g. "> test.py(2)foo()->None"
 ;; Either file or function name may be omitted: "> <string>(0)?()"
 (defvar gud-pdb-marker-regexp
-  "^> \\([-a-zA-Z0-9_/.]*\\|<string>\\)(\\([0-9]+\\))\\([a-zA-Z0-9_]*\\|\\?\\)()\\(->[^\n]*\\)?\n")
+  "^> \\([-a-zA-Z0-9_/.:\\]*\\|<string>\\)(\\([0-9]+\\))\\([a-zA-Z0-9_]*\\|\\?\\)()\\(->[^\n]*\\)?\n")
 (defvar gud-pdb-marker-regexp-file-group 1)
 (defvar gud-pdb-marker-regexp-line-group 2)
 (defvar gud-pdb-marker-regexp-fnname-group 3)
@@ -1406,7 +1406,7 @@ and source-file directory for your debugger."
   (set (make-local-variable 'gud-minor-mode) 'pdb)
 
   (gud-def gud-break  "break %l"     "\C-b" "Set breakpoint at current line.")
-  (gud-def gud-remove "clear %l"     "\C-d" "Remove breakpoint at current line")
+  (gud-def gud-remove "clear %f:%l"  "\C-d" "Remove breakpoint at current line")
   (gud-def gud-step   "step"         "\C-s" "Step one source line with display.")
   (gud-def gud-next   "next"         "\C-n" "Step one line (skip functions).")
   (gud-def gud-cont   "continue"     "\C-r" "Continue with display.")