branch: externals/realgud commit 3d0fcb80eb017ee2277440d688bf366af3bcdf6f Author: rocky <ro...@gnu.org> Commit: rocky <ro...@gnu.org>
Match nested prompts in python trepan debuggers --- realgud/debugger/trepan2/init.el | 7 ++++++- realgud/debugger/trepan3k/init.el | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/realgud/debugger/trepan2/init.el b/realgud/debugger/trepan2/init.el index 7d05ed3..1948a68 100644 --- a/realgud/debugger/trepan2/init.el +++ b/realgud/debugger/trepan2/init.el @@ -41,9 +41,14 @@ realgud-loc-pat struct") (setf (gethash "loc" realgud:trepan2-pat-hash) realgud:python-trepan-loc-pat) +;; Regular expression that describes a trepan2 prompt. +;; Note: the prompt in nested debugging +;; For example: +;; (trepan2) +;; ((trepan2)) (setf (gethash "prompt" realgud:trepan2-pat-hash) (make-realgud-loc-pat - :regexp "^(trepan2) " + :regexp "^(+trepan2)+ " )) ;; Regular expression that describes a trepan2 backtrace line. diff --git a/realgud/debugger/trepan3k/init.el b/realgud/debugger/trepan3k/init.el index 6749ed3..c88b271 100644 --- a/realgud/debugger/trepan3k/init.el +++ b/realgud/debugger/trepan3k/init.el @@ -47,9 +47,14 @@ realgud-loc-pat struct") (setf (gethash "loc" realgud:trepan3k-pat-hash) realgud:python-trepan-loc-pat) +;; Regular expression that describes a trepan3k prompt. +;; Note: the prompt in nested debugging +;; For example: +;; (trepan3) +;; ((trepan3k)) (setf (gethash "prompt" realgud:trepan3k-pat-hash) (make-realgud-loc-pat - :regexp "^(trepan3k) " + :regexp "^(+trepan3k+) " )) ;; realgud-loc-pat that describes a trepan3k backtrace line.