From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#61973: M-x gdb ends up with infinite prompts before starting the process Date: Tue, 7 Mar 2023 00:48:59 +0200 Message-ID: References: <7e2c2b51-f389-191e-9048-4021232a06e6@yandex.ru> <83v8jf8vz8.fsf@gnu.org> <0ad69ade-528f-e14e-1841-66c6967bb672@yandex.ru> <83jzzv8bv2.fsf@gnu.org> <8e3e1bf7-618f-93ec-af09-643b9b49978a@yandex.ru> <83r0u17n9a.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21237"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Cc: 61973@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 06 23:50:20 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 1pZJeu-0005Jf-0f for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Mar 2023 23:50:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZJee-0008Qm-7Q; Mon, 06 Mar 2023 17:50:04 -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 1pZJec-0008QB-H9 for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 17:50:02 -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 1pZJec-0006QO-HW for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 17:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pZJec-0006ge-CB for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 17:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Mar 2023 22:50: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.167814295125637 (code B ref 61973); Mon, 06 Mar 2023 22:50:02 +0000 Original-Received: (at 61973) by debbugs.gnu.org; 6 Mar 2023 22:49:11 +0000 Original-Received: from localhost ([127.0.0.1]:43904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZJdn-0006fQ-79 for submit@debbugs.gnu.org; Mon, 06 Mar 2023 17:49:11 -0500 Original-Received: from mail-wr1-f41.google.com ([209.85.221.41]:33283) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZJdl-0006fA-1s for 61973@debbugs.gnu.org; Mon, 06 Mar 2023 17:49:09 -0500 Original-Received: by mail-wr1-f41.google.com with SMTP id v16so10489236wrn.0 for <61973@debbugs.gnu.org>; Mon, 06 Mar 2023 14:49:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678142942; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=R8yJHo1ScJWjH1cV8x4oSin36KCjZgLDWu4Hbt3lEGI=; b=mSNd7atSKk1zi+bWCOlTcqii6XS8WFcZRn3C3uwQeMjoronKtbXlIcVBvLmYJxm7Ob VOUI6LzM1o48Pi81LSb3dgHhsW6udbgAKqPsfe0iZ7vyodeI+X303MTIZREG+v9od+GJ ATrhyStA7xvVSszpBBLP5Ykdz5/PktMC5aDv8sFPXU2qUkSkb9OD0DuBskR8e6hxK2sB 1frwHcbjxZhmIxNKyZF0+FAAJuBl7hm05qgb0uKBLb3mAMNYF4f9T54yn36n5OwzoVEs /5+QwshJWEwYHCcOWQB22bAfymCbUSLsokk/sc2cb9cFLZSRyHz1q1GxYEhZr1isd6W1 LpKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678142942; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=R8yJHo1ScJWjH1cV8x4oSin36KCjZgLDWu4Hbt3lEGI=; b=AMxXG+UmwdZ755GEXh8IepbxKflT3K+dFTDcL5jYEuaQuYWWzAklxAa4f6L5TAxm1O 1prgA1NcaC+dq7U6VJJpqpYw5lBj3daXG3NTwOMJ4vyZZVtZwSZn+OO7tNwg9Z35annV pWj1b7W2+XoHvfB7rOdV+NGf1+SoSZ16LXXXeaByAsmeQ8h0N8GzYK74eGG/IelyQ4yy GtlvKnTkrCgceY1MNGVFysmBHyVGrIsKlDQLY0yYG4x/JIqJleVpuLo5o/SmbyEa7k0h eihmGtnfPIJmsWlJVBmKBC+4PnymAnOcdW8y8e2i/KlPJouAp/iTNdgBHPBPgGF7UcnQ kvpQ== X-Gm-Message-State: AO0yUKV29hvlgIBP2HVRQdLPjKzGQ9zG774XA/8Jr2lyw7C+KyAeiJz6 IqdfaoKX4SnDfi3rQ2dK+/c= X-Google-Smtp-Source: AK7set8vwLQroI8wMbSoj5TJ5w+yLy8ALZOVC+g6ukDkvlsVt7nA6MQGSko7rWFnmzq6N1PtxjaT5Q== X-Received: by 2002:adf:e302:0:b0:2c5:5ff8:6b02 with SMTP id b2-20020adfe302000000b002c55ff86b02mr8437369wrj.0.1678142942296; Mon, 06 Mar 2023 14:49:02 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id z26-20020a1c4c1a000000b003eb395a8280sm15230644wmf.37.2023.03.06.14.49.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Mar 2023 14:49:01 -0800 (PST) Content-Language: en-US In-Reply-To: <83r0u17n9a.fsf@gnu.org> 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:257422 Archived-At: On 06/03/2023 20:22, Eli Zaretskii wrote: >> Date: Sun, 5 Mar 2023 17:26:08 +0200 >> Cc:61973@debbugs.gnu.org >> From: Dmitry Gutov >> >> On 05/03/2023 17:19, Eli Zaretskii wrote: >>> 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. >> First of all, though, it sends the debuginfod-related prompt to me 12 >> times. I'm guessing that's because there is some scenario running >> internally that tries to send some other commands to GDB while it's >> waiting for a particular response (y/n), so it repeats the question 11 >> times instead of reacting to those commands. > Could you please try the patch below? I don't have access to a system > where GDB can actually download the files from debuginfod servers, so > I could test this only partially. Please test all the 3 possible > values of the new defcustom gdb-debuginfod-enable-setting. TIA. Looking good! Thank you. I have tries all 3 possible values, and the behavior looks as expected. With 't', I even see a small delay when launching the process, presumably from contacting some debuginfo server. I haven't been able to verify that the debuginfo stuff is actually working (nor sure where to look), but the basic functionality is now okay.