[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master daa21fb: Tweak the gdb-mi error message
From: |
Lars Ingebrigtsen |
Subject: |
master daa21fb: Tweak the gdb-mi error message |
Date: |
Fri, 30 Oct 2020 08:18:56 -0400 (EDT) |
branch: master
commit daa21fb895c378674238f0f0a2492d93234901db
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Tweak the gdb-mi error message
* lisp/progmodes/gdb-mi.el (gdb--check-interpreter): Make the
error message less misleading (bug#40279).
---
lisp/progmodes/gdb-mi.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index f0262c2..8ff094f 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -737,8 +737,10 @@ NOARG must be t when this macro is used outside `gud-def'."
(unless (zerop (length string))
(remove-function (process-filter proc) #'gdb--check-interpreter)
(unless (memq (aref string 0) '(?^ ?~ ?@ ?& ?* ?=))
- ;; Apparently we're not running with -i=mi.
- (let ((msg "Error: you did not specify -i=mi on GDB's command line!"))
+ ;; Apparently we're not running with -i=mi (or we're, for
+ ;; instance, debugging something inside a Docker instance with
+ ;; Emacs on the outside).
+ (let ((msg "Error: Either -i=mi wasn't specified on the GDB command
line, or the extra socket couldn't be established. Consider using `M-x
gud-gdb' instead."))
(message msg)
(setq string (concat (propertize msg 'font-lock-face 'error)
"\n" string)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master daa21fb: Tweak the gdb-mi error message,
Lars Ingebrigtsen <=