From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#40279: 26.3; Error: you did not specify -i=mi on GDB's command line! Date: Tue, 27 Oct 2020 20:14:07 +0100 Message-ID: <87pn53zdkw.fsf@gnus.org> References: <87ft61134a.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35137"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 40279@debbugs.gnu.org To: William Xu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 27 20:29:41 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kXUf6-000924-Uv for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Oct 2020 20:29:40 +0100 Original-Received: from localhost ([::1]:57146 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXUf5-00056c-S7 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Oct 2020 15:29:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXUQy-00035H-QA for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2020 15:15:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34336) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXUQy-0002Y8-1G for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2020 15:15:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kXUQw-0002xF-Pm for bug-gnu-emacs@gnu.org; Tue, 27 Oct 2020 15:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Oct 2020 19:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40279 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 40279-submit@debbugs.gnu.org id=B40279.160382606411274 (code B ref 40279); Tue, 27 Oct 2020 19:15:02 +0000 Original-Received: (at 40279) by debbugs.gnu.org; 27 Oct 2020 19:14:24 +0000 Original-Received: from localhost ([127.0.0.1]:45878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXUQJ-0002vm-Po for submit@debbugs.gnu.org; Tue, 27 Oct 2020 15:14:24 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:60884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXUQH-0002vZ-DF for 40279@debbugs.gnu.org; Tue, 27 Oct 2020 15:14:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=kNngeU6TgzlJ+V5ijAo/aWf8GDaJYFfSI+/JlWitAlI=; b=Nt3isRj/XKeXEc5tEZuafNkJil ML8BYuQDyOVIy1xcRDKn/wXmbfmTTGfgIg6aTO8rRy1pK9HNkwG5B3V07ALZYAfq35cp6oRtY+ZkM PsyMQdprEiodjBiXrhbEbrc+l4zd1JNPbYtPj2pEVM8jSwSxgL5V+yeIlprk5a7/3peA=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kXUQ5-0003NA-0F; Tue, 27 Oct 2020 20:14:15 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAKlBMVEUNCgkvLCpQTUxx bm2Oi4oiHh3JxsViX12sqahBQD5BPTyCfnyCgH7////cAm+xAAAAAWJLR0QN9rRh9QAAAAd0SU1F B+QKGxMEEOsS80IAAAFrSURBVDjLjdIxT8JAFAfwttg46ND/1UtRF65YZcQeBBIXKRCQiZI06KiL jhYGjHExwTC4iN9AEz8Am6uTX8ubiPQeCW/r++Xa/3tXw9igTLEGXFmgwW81yL7N3BsaPDlbc2Ia 0d+Af0pDHJfXAO7J/hVosEZAhZrQ7QDuNRFWyDn4lIDUfRS87mhgCowmIq8HNsGZ5LWFDgHgs/C4 r6VdACdP4d55FgZhDM87RZqFQ8nBvRZWFmzz2Cip+eDW/Bc7Mf8lgt0N0xjD6KGsHpbDxODWXTgG WLPbNpEskyVxYnZ/iypw51u9anUjr5OiAIvq2c3n2mcVgeFFMbusnDiSAYY/79nJLcHkF1iKLNjT iVSp5lxbYj4UasKDQAOrofrss6pfYXNfyUdBh1KqAARcPqt+7Ohg3QJ80NfBcAN1IwZVgoPs21X0 SVD/CQ3b0ndI2On2aNjqrTmxO2M0WK3ojQRjXKP7hukYG9QfraA5OGr6jiQAAAAldEVYdGRhdGU6 Y3JlYXRlADIwMjAtMTAtMjdUMTk6MDQ6MTYrMDA6MDD8NUtGAAAAJXRFWHRkYXRlOm1vZGlmeQAy MDIwLTEwLTI3VDE5OjA0OjE2KzAwOjAwjWjz+gAAAABJRU5ErkJggg== X-Now-Playing: Zola Jesus's _Live at Roadburn_: "Remains" In-Reply-To: (William Xu's message of "Tue, 27 Oct 2020 19:36:50 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:191774 Archived-At: William Xu writes: > This is the change I have to make: > https://lists.gnu.org/archive/html/help-gnu-emacs/2020-10/msg00369.html For reference, your proposed patch is just: diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index f0262c2315..7df23a6f41 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el @@ -1658,14 +1658,7 @@ gdb-display-io-buffer (defun gdb-inferior-io--init-proc (proc) ;; Set up inferior I/O. Needs GDB 6.4 onwards. (set-process-filter proc 'gdb-inferior-filter) - (set-process-sentinel proc 'gdb-inferior-io-sentinel) - ;; The process can run on a remote host. - (let ((tty (or (process-get proc 'remote-tty) - (process-tty-name proc)))) - (unless (or (null tty) - (string= tty "")) - (gdb-input - (concat "-inferior-tty-set " tty) 'ignore)))) + (set-process-sentinel proc 'gdb-inferior-io-sentinel)) (defun gdb-inferior-io-sentinel (proc _str) (when (eq (process-status proc) 'failed) I tried looking at the VC logs to see what the point of the inferior-tty-set command was, but the only mention I found was: (gdb-inferior-io--init-proc): Don't send "-inferior-tty" command if the TTY name is nil or empty (which happens when communicating with the inferior via pipes, e.g. on MS-Windows). Which just disables it on Windows? Hm... it was introduced below, but doesn't really say why. commit f30d612a7a628828baa7c333629a10295605291b Author: Chong Yidong AuthorDate: Fri Apr 20 14:39:29 2012 +0800 And as far as I can tell, gdb runs just fine without it, even on GNU/Linux? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no