From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Diancheng Wang Newsgroups: gmane.emacs.bugs Subject: bug#74642: 31.0.50; [Patch] Turn off current source line indicator when gdb buffer is killed Date: Wed, 04 Dec 2024 16:22:51 +0800 Message-ID: <87frn3yi04.fsf@163.com> References: <87wmgiy38x.fsf@163.com> <868qsy442u.fsf@gnu.org> <87ldwxy11t.fsf@163.com> <86ed2p2bgm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6830"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74642@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 04 09:24:35 2024 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 1tIkgU-0001eL-TO for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Dec 2024 09:24:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIkg8-0006qJ-Pm; Wed, 04 Dec 2024 03:24:13 -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 1tIkfz-0006pu-V9 for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2024 03:24:04 -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 1tIkfx-0000UJ-Up for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2024 03:24:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=Evrs4ZmGj9XhjnWIqWsOm2Hd1IUywSpR3h/tH53MCz4=; b=cVIAmBh6VYAZQEnnTqN5rnVi5+YssJGdvG3C1hep8zRGC6gE0bRy1CC8dkDT3pYnypHGFA7jwA+7Y+ZOB5R8oY/N5LhJyenQp9IPBEjJrch0O8ks8WFpEFLHU+hfO9oW4CdsN1pWb1T17NbMugTDkeUSj7HTiR/eRaJIIr6oQRIoc9q4twmajiSVfKf+JbVOFCp0RUZE65KnP9WmBhE1VxpMgzs9TfXHFzSrFWNcukEVb7FCT1UJE6fRmLV3JXgacpARWeB3aZoJ3+OOSbKTMxpTw9rka70LUM2yqEADedPcHCJpKzxbf/zPXtvcBKSd9ufWNkgJvx7C9wP/m3hOvQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tIkfx-00039a-Na for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2024 03:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Diancheng Wang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Dec 2024 08:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74642 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74642-submit@debbugs.gnu.org id=B74642.173330058412029 (code B ref 74642); Wed, 04 Dec 2024 08:24:01 +0000 Original-Received: (at 74642) by debbugs.gnu.org; 4 Dec 2024 08:23:04 +0000 Original-Received: from localhost ([127.0.0.1]:34189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIkf2-00037x-69 for submit@debbugs.gnu.org; Wed, 04 Dec 2024 03:23:04 -0500 Original-Received: from m16.mail.163.com ([117.135.210.3]:42120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIkew-000377-TI for 74642@debbugs.gnu.org; Wed, 04 Dec 2024 03:23:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version: Content-Type; bh=Evrs4ZmGj9XhjnWIqWsOm2Hd1IUywSpR3h/tH53MCz4=; b=CNocOBTeB5Jkd+RjBgPQzVYs5LPTGzfghR2pfqwuMDkrXJM998Ep6yLPpaKAC8 l/ztbXxe9TpQUhERunbTQZ5ZDpbybE5PduuQ0yqXdE+vIcWBukR0pGhAMGK0aX10 EkJNoCBdsbXfvV+Ui5pRet0AipXT6moYZv1kr3aLb2i9E= Original-Received: from hadleywang-LC0 (unknown []) by gzga-smtp-mtada-g0-0 (Coremail) with SMTP id _____wDn901bEVBnFznFBA--.46044S3; Wed, 04 Dec 2024 16:22:52 +0800 (CST) In-Reply-To: <86ed2p2bgm.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 03 Dec 2024 14:32:57 +0200") X-CM-TRANSID: _____wDn901bEVBnFznFBA--.46044S3 X-Coremail-Antispam: 1Uf129KBjvJXoW7GFyfZr15Zr18tF13KryfWFg_yoW8JryUpa y5KF1agayDWFnIyFyIv3WxGa4fA3ykGay7GF1DKw1Yka4kuFnIqr4fKr45Zr9ru3ZrW3yU Aa1j9F1kKF98trJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0zRrpndUUUUU= X-Originating-IP: [111.206.96.145] X-CM-SenderInfo: xgld0u5khqwspzdqwqqrwthudrp/xtbBXwmrqWdQDIM0FwADsM 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:296401 Archived-At: --=-=-= Content-Type: text/plain Eli Zaretskii writes: >> From: Diancheng Wang >> Cc: 74642@debbugs.gnu.org >> Date: Tue, 03 Dec 2024 10:04:30 +0800 >> >> Eli Zaretskii writes: >> >> > Thanks, but can you please describe the scenario in which the >> > indicator is not removed? I guess I don't really understand what you >> > mean by "gdb buffer is killed": what I tried is simply end the >> > debugging session by typing "q RET" at the GDB prompt. And that >> > removed the indicator. >> >> Hi, >> >> Sorry for confusing. I mean killing GDB interactive buffer directly by >> typing "C-k RET" when gdb is stopped on a source line. The indicator is >> not removed. > > I guess you mean "C-x k RET"? Yes, I mean "C-x k RET" > > When I do that, Emacs asks me whether to kill the process associated > with the buffer, and if I say YES, the indicator does disappear Yes, the steps are same with me. > (sometimes after a second, which I guess is needed for Emacs to kill > the process). Isn't that what you see? No, the indicator does not disappear after I killed "*gud-myprogram*" buffer. By the way I started emacs using "emacs -Q". The attachment is my running emacs information (the buffer content created by report-emacs-bug) --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=emacs-info Content-Transfer-Encoding: base64 CgoKCkluIEdOVSBFbWFjcyAzMS4wLjUwIChidWlsZCAxLCB4ODZfNjQtcGMtbGludXgtZ251LCBY IHRvb2xraXQsIGNhaXJvCiB2ZXJzaW9uIDEuMTUuMTIsIFhhdzNkIHNjcm9sbCBiYXJzKSBvZiAy MDI0LTEyLTA0IGJ1aWx0IG9uIGg0ClJlcG9zaXRvcnkgcmV2aXNpb246IGQ3MDZiZTRiMzQ1ZjNl MmQyNDJjNGYyZmZi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