summaryrefslogtreecommitdiff
path: root/lisp/progmodes/gdb-mi.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@gnu.org>2011-12-11 21:17:07 +0800
committerChong Yidong <cyd@gnu.org>2011-12-11 21:17:07 +0800
commitee957461818e4568cd105c29fab5ee4a06184629 (patch)
tree5b7e1909726e1b8e614ee961d72bd0a277aa8f8c /lisp/progmodes/gdb-mi.el
parentd93a1e346748314203e81d68a07fbe3cd727f28f (diff)
downloademacs-ee957461818e4568cd105c29fab5ee4a06184629.tar.gz
* progmodes/gdb-mi.el (gdb): Set comint-prompt-regexp
which is required for completion via gud-gdb-fetch-lines-filter. Fixes: debbugs:10274
Diffstat (limited to 'lisp/progmodes/gdb-mi.el')
-rw-r--r--lisp/progmodes/gdb-mi.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index ab40dff24f1..86d4a72f408 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -811,6 +811,9 @@ detailed description of this mode.
(define-key gud-minor-mode-map [left-margin C-mouse-3]
'gdb-mouse-jump)
+ (set (make-local-variable 'comint-prompt-regexp)
+ "^(.*gdb[+]?) *")
+
(add-hook 'completion-at-point-functions #'gud-gdb-completion-at-point
nil 'local)
(local-set-key "\C-i" 'completion-at-point)