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#75298: GUD doesn't let me answer debuginfod query Date: Fri, 03 Jan 2025 10:09:51 +0200 Message-ID: <865xmwiai8.fsf@gnu.org> References: <87o70p2g13.fsf@dancol.org> <86seq1htal.fsf@gnu.org> <8734i0c0kc.fsf@dancol.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5636"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75298@debbugs.gnu.org To: Daniel Colascione Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 03 09:11:18 2025 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 1tTcm6-0001Hk-JO for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Jan 2025 09:11:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTclt-0002A6-T0; Fri, 03 Jan 2025 03:11:06 -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 1tTclq-00029q-S4 for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 03:11:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tTclq-0005by-K2 for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 03:11:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=7cBLRqjW37TEkZAcpLxqrV+5LGp1qavl6kn6FRjmOhk=; b=kfa+vT0vOr7SX3QOKaw4YIab9aBAaVW+z/sOqatqXeR479ZgKtdNU24/i2vn3hUIW1f0oMSzJqYp1BmIiA+RtUfctPfOXzUBFT1tLZcYWR1VCwx6mRHNdPmyh/8K8XkCXZEtmkQr7K1pb1bPIz177avY0AgIwbv/w5he/P8i1EmpDLRlAAozRJNimXotiwsroFaXP4ph7cpslS+lclYejo7w5HmVXHZGkm8/WQ4Wh+yfSxaLKQ+oqXv+IWl/5Vu3hQZeOBnrKjCUNmX47+M2G39KHCzntpn48AbbUSs0BSDTLwZAJNOWqEQi0jKRSWMv1bmdrjvrs9zPFAlXFV+q5w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTclq-0000en-1b for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 03:11: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: Fri, 03 Jan 2025 08:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75298 X-GNU-PR-Package: emacs Original-Received: via spool by 75298-submit@debbugs.gnu.org id=B75298.17358918392494 (code B ref 75298); Fri, 03 Jan 2025 08:11:02 +0000 Original-Received: (at 75298) by debbugs.gnu.org; 3 Jan 2025 08:10:39 +0000 Original-Received: from localhost ([127.0.0.1]:49383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTclS-0000eA-CP for submit@debbugs.gnu.org; Fri, 03 Jan 2025 03:10:38 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34582) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tTclL-0000ds-Mi for 75298@debbugs.gnu.org; Fri, 03 Jan 2025 03:10:37 -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 1tTclF-0005Uj-L2; Fri, 03 Jan 2025 03:10:25 -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=7cBLRqjW37TEkZAcpLxqrV+5LGp1qavl6kn6FRjmOhk=; b=J/VoNIRZQIYn 0DSSE2XoC2aooyaPVTEePIBFX6c+eznJg6QA9VEzyXyZobfb4MkULr26BAdM6tflYsD0aXWp4P2tN wtW4JhOYpeE/JaCxqsgVyBB2md9L7B6Tv22DPdVJDH57xcj2jTaJoFqfEDv8a44RxRRcKBVV6BXiW o6nqPNa1G5X1pco7Qri7ZHemlXcrlPR7+beC5p9BWBPRcZuHa/q9dVZDpIYBWUX1UYoESu+hutuaN 73jpcW3uwCvTDMNWKKLvZgfrPE7GEt6+t8MmtK0ZWDBTlUUJh4k0kc+FZmE2p2+g8nLXs70QQQAny /xcGvewYFDwJ0/4qVoIViw==; In-Reply-To: <8734i0c0kc.fsf@dancol.org> (message from Daniel Colascione on Thu, 02 Jan 2025 17:28:51 -0500) 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:298256 Archived-At: > From: Daniel Colascione > Cc: 75298@debbugs.gnu.org > Date: Thu, 02 Jan 2025 17:28:51 -0500 > > Eli Zaretskii writes: > > >> From: Daniel Colascione > >> Date: Thu, 02 Jan 2025 14:04:56 -0500 > >> > >> I'd expect to be able to answer the debuginfod query in the affirmative > >> in the GUD session below, but nothing I put into the buffer seems > >> acceptable to GDB. > > > > Which command did you use: "M-x gdb" or "M-x gud-gdb"? > > The former. The latter works fine, but doesn't integrate into Emacs. > > > The former is supposed to allow you to answer the question, at least > > in Emacs 30 (you didn't say which Emacs version you used). > > I'm using master. Then I cannot reproduce this here. > > The latter doesn't ask me that question at all. So I'm unsure > > what happens in your case. In case this is GDB-version dependent: > > I tried with GDB version 12.1. > > debuginfod isn't enabled in all environments, so you might not get > the question. I'm using GDB 15.1. Oh, I do get asked, and I can answer either 'n' or 'y'. But the question I see is worded differently: Enable querying debuginfod servers for this session? (y or n) y This question comes from gdb-init-1, in this fragment: ;; This needs to be done before we ask GDB for anything that might ;; trigger questions about debuginfod queries. (if (eq gdb-debuginfod-enable 'ask) (setq gdb-debuginfod-enable (y-or-n-p "Enable querying debuginfod servers for this session?"))) (gdb-input (format "-gdb-set debuginfod enabled %s" (if gdb-debuginfod-enable "on" "off")) 'gdb-debuginfod-message) It looks like in your case we fail to ask the above question before GDB asks us about that, but what breaks the above assumption and triggers GDB's question before we shut it up? It could be a different GDB version, I'm not sure. I don't have GDB 15 on the GNU/Linux system where I can test this. Is this in "emacs -Q", btw? If not, perhaps some customizations get in the way? Or maybe some GDB customizations? Can anyone else reproduce this with the master branch and GDB 15? Anyway, as a stopgap, you should be able to avoid the question by customizing gdb-debuginfod-enable-setting. If that doesn't work either, it's possible that something causes GDB to ask this question earlier than we anticipate, and we need to revisit this code (which was tested at the time with GDB versions that asked about debuginfod).