]> git.eshelyaron.com Git - emacs.git/commitdiff
Tweak the gdb-mi error message
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 30 Oct 2020 12:18:47 +0000 (13:18 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 30 Oct 2020 12:18:47 +0000 (13:18 +0100)
* lisp/progmodes/gdb-mi.el (gdb--check-interpreter): Make the
error message less misleading (bug#40279).

lisp/progmodes/gdb-mi.el

index f0262c231511db1ec0733414e28620405399a178..8ff094ffe887f33e8d065707e4a19709df1b5249 100644 (file)
@@ -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)))