all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Roland Coeurjoly <rolandcoeurjoly@gmail.com>
Cc: 40279@debbugs.gnu.org
Subject: bug#40279: 26.3; Error: you did not specify -i=mi on GDB's command line!
Date: Mon, 26 Oct 2020 15:19:33 +0100	[thread overview]
Message-ID: <87ft61134a.fsf@gnus.org> (raw)
In-Reply-To: <CAMdauZrfOZk+dOTfu2-cqYs0g1Rbn5=BL6stLfeBuFniBa_vKQ@mail.gmail.com> (Roland Coeurjoly's message of "Sun, 29 Mar 2020 09:21:42 +0200")

Roland Coeurjoly <rolandcoeurjoly@gmail.com> writes:

> When I try to run:
> M-x gdb <RET> docker-compose -f ~/docker-services/dev/docker-compose.yml
> exec dev_rhel7 bash -c "gdb -i=mi" <RET>
> I get the following error:
> Error: you did not specify -i=mi on GDB's command line!

I don't know docker, but this is a message Emacs gives when gdb doesn't
start up and output the data that knows that it has been started
correctly.

So the message may be slightly misleading, but the problem seems to be
that gdb isn't started properly?  Here's the code:

(defun gdb--check-interpreter (filter proc string)
  (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!"))

So is there a problem with your gdb invocation via docker?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2020-10-26 14:19 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-29  7:21 bug#40279: 26.3; Error: you did not specify -i=mi on GDB's command line! Roland Coeurjoly
2020-10-26 14:19 ` Lars Ingebrigtsen [this message]
2020-10-26 20:31   ` Roland Coeurjoly
2020-10-26 21:01     ` Lars Ingebrigtsen
2020-10-26 21:07       ` Roland Coeurjoly
2020-10-27  7:46         ` Lars Ingebrigtsen
2020-10-27 18:36     ` William Xu
2020-10-27 19:14       ` Lars Ingebrigtsen
2020-10-27 20:04         ` William Xu
2020-10-27 20:11           ` Lars Ingebrigtsen
2020-10-28 19:48             ` William Xu
2020-10-30 12:19               ` Lars Ingebrigtsen
2020-10-30 16:29                 ` William Xu
2020-10-27 20:20           ` Eli Zaretskii
2020-10-27 20:09         ` Eli Zaretskii
2020-11-03 18:52     ` William Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ft61134a.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=40279@debbugs.gnu.org \
    --cc=rolandcoeurjoly@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.