From 4042dad139d922723aabcfaef5662db8204fb355 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Mon, 9 Sep 2019 04:14:50 +0200 Subject: [PATCH] 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) --- lisp/progmodes/gud.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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." ;; characters we match in the file name shown in the prompt. ;; (Of course, this matches the "" case too.) (defvar gud-pdb-marker-regexp - "^> \\([[:graph:] \\]*\\)(\\([0-9]+\\))\\([a-zA-Z0-9_]*\\|\\?\\|\\)()\\(->[^\n\r]*\\)?[\n\r]") + (concat "^> \\([[:graph:] \\]*\\)(\\([0-9]+\\))\\([a-zA-Z0-9_]*\\|\\?\\|" + "<\\(?:module\\|listcomp\\|dictcomp\\|setcomp\\|genexpr\\|lambda\\|\\)>" + "\\)()\\(->[^\n\r]*\\)?[\n\r]")) (defvar gud-pdb-marker-regexp-file-group 1) (defvar gud-pdb-marker-regexp-line-group 2) -- 2.39.5