aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2019-09-09 04:14:50 +0200
committerStefan Kangas2019-09-09 04:33:07 +0200
commit4042dad139d922723aabcfaef5662db8204fb355 (patch)
treef8e06672c2ebdfcc74c0e389b6d9b0aa83525d6a
parenta1e93c163372716fc475097290ff7a57b3e58008 (diff)
downloademacs-4042dad139d922723aabcfaef5662db8204fb355.tar.gz
emacs-4042dad139d922723aabcfaef5662db8204fb355.zip
Match Python 3 code object names in "M-x pdb"
* lisp/progmodes/gud.el (gud-pdb-marker-regexp): Match Python 3 code object names. (Bug#11679)
-rw-r--r--lisp/progmodes/gud.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 30d4b199110..235546ef2e4 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -1610,7 +1610,9 @@ and source-file directory for your debugger."
1610;; characters we match in the file name shown in the prompt. 1610;; characters we match in the file name shown in the prompt.
1611;; (Of course, this matches the "<string>" case too.) 1611;; (Of course, this matches the "<string>" case too.)
1612(defvar gud-pdb-marker-regexp 1612(defvar gud-pdb-marker-regexp
1613 "^> \\([[:graph:] \\]*\\)(\\([0-9]+\\))\\([a-zA-Z0-9_]*\\|\\?\\|<module>\\)()\\(->[^\n\r]*\\)?[\n\r]") 1613 (concat "^> \\([[:graph:] \\]*\\)(\\([0-9]+\\))\\([a-zA-Z0-9_]*\\|\\?\\|"
1614 "<\\(?:module\\|listcomp\\|dictcomp\\|setcomp\\|genexpr\\|lambda\\|\\)>"
1615 "\\)()\\(->[^\n\r]*\\)?[\n\r]"))
1614 1616
1615(defvar gud-pdb-marker-regexp-file-group 1) 1617(defvar gud-pdb-marker-regexp-file-group 1)
1616(defvar gud-pdb-marker-regexp-line-group 2) 1618(defvar gud-pdb-marker-regexp-line-group 2)