From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61973: M-x gdb ends up with infinite prompts before starting the process Date: Sun, 05 Mar 2023 17:19:13 +0200 Message-ID: <83jzzv8bv2.fsf@gnu.org> References: <7e2c2b51-f389-191e-9048-4021232a06e6@yandex.ru> <83v8jf8vz8.fsf@gnu.org> <0ad69ade-528f-e14e-1841-66c6967bb672@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38542"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61973@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 05 16:20:40 2023 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 1pYqAB-0009ss-PX for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Mar 2023 16:20:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYq9f-0002Gh-2P; Sun, 05 Mar 2023 10:20:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYq9b-0002G9-VH for bug-gnu-emacs@gnu.org; Sun, 05 Mar 2023 10:20:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYq9a-0004Kw-Oy for bug-gnu-emacs@gnu.org; Sun, 05 Mar 2023 10:20:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pYq9a-0003j3-Iw for bug-gnu-emacs@gnu.org; Sun, 05 Mar 2023 10:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Mar 2023 15:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61973 X-GNU-PR-Package: emacs Original-Received: via spool by 61973-submit@debbugs.gnu.org id=B61973.167802957014307 (code B ref 61973); Sun, 05 Mar 2023 15:20:02 +0000 Original-Received: (at 61973) by debbugs.gnu.org; 5 Mar 2023 15:19:30 +0000 Original-Received: from localhost ([127.0.0.1]:40326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYq93-0003ih-KP for submit@debbugs.gnu.org; Sun, 05 Mar 2023 10:19:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYq91-0003iD-DO for 61973@debbugs.gnu.org; Sun, 05 Mar 2023 10:19:28 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYq8v-0004DB-QU; Sun, 05 Mar 2023 10:19:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=453cxqQ5smdRHQufGPaskV2iy87KcGup9L4t99fUBBg=; b=T+loX0IuOZBd ZBZFmAF2OAz47t6S8KTe15V+JZLPA0an6eFsYNzl6UFOKxtU+d4xIgfTQcwau0l3APIJb8OkUCO+7 ChNUi2j2NyaM3VkBpJoILVKIFfF7PrJCmLekD9ApA9JyOK+xyjFb1TIE8D4nQrpTJxzNNjTjKOQ5Z CADmUAIRmmAUu1trJYNduuK//23a1Hj4+VlOJkxEU5LYRGFX/uvcczlbNpPigu3QhSCyyMGRZ56TI pnxoaFlcL/vQpNSDmED11MHu5OBLhCw5orhx9VT4yPUtOhPpkfgi8JA/orTqMAxu8gveS/5UuvQdF SbNUd2K6FHfdKvn4TD8RxA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYq8v-0003xE-9m; Sun, 05 Mar 2023 10:19:21 -0500 In-Reply-To: <0ad69ade-528f-e14e-1841-66c6967bb672@yandex.ru> (message from Dmitry Gutov on Sun, 5 Mar 2023 15:18:48 +0200) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:257353 Archived-At: > Date: Sun, 5 Mar 2023 15:18:48 +0200 > Cc: 61973@debbugs.gnu.org > From: Dmitry Gutov > > > Next, can you enable gdb-enable-debug minor mode, and post the > > contents of gdb-debug-log (formatted with pp, please) after these > > questions are asked and you answer them? > > Seems to be pretty-printed already (note that I only pressed 'y' twice): > > ((recv . "~\"Please answer y or [n].\\n\" > ~\"\\nThis GDB supports auto-downloading debuginfo from the following > URLs:\\nhttps://debuginfod.ubuntu.com \\nEnable debuginfod for this > session? (y or [n]) \" > ") > (mi-send . > #("-interpreter-exec console \"y\" > " 27 28 > (fontified t))) > (recv . "~\"Please answer y or [n].\\n\" > ~\"\\nThis GDB supports auto-downloading debuginfo from the following > URLs:\\nhttps://debuginfod.ubuntu.com \\nEnable debuginfod for this > session? (y or [n]) \" > ") > (mi-send . > #("-interpreter-exec console \"y\" > " 27 28 > (fontified t))) Thanks. This confirms my suspicion: we don't recognize the situation where GDB waits for a response, and interpret your "y" response as a GDB command. So we send it as a command: that's what the "-interpreter-exec console" thing is about. So GDB waits for "y" or "n", but gets "-interpreter-exec console \"y\"". We need to teach gdb-mi.el to recognize these prompts. Will look into that. > > Finally, if you add the following line to your ~/.gdbinit, does the > > problem go away? > > > > set debuginfod enabled on > > That helps. 'set debuginfod enabled off' also works. Yes, anything other than "ask" (which is the default). This will serve as a workaround until the solution is found and installed.