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: Tue, 03 Dec 2024 10:04:30 +0800 Message-ID: <87ldwxy11t.fsf@163.com> References: <87wmgiy38x.fsf@163.com> <868qsy442u.fsf@gnu.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="40610"; 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 Tue Dec 03 03:05:27 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 1tIII3-000ARV-Bz for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Dec 2024 03:05:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIIHh-0003n8-GJ; Mon, 02 Dec 2024 21:05:05 -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 1tIIHg-0003mN-4E for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2024 21:05: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 1tIIHf-0001ag-Nf for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2024 21:05: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=KV1nSd3lJbYehMnVmhAfCdduBg+41MScrkgIbFpocwY=; b=cvnT+82YhwuLoYTaSSZfSHl6kMBdiaErLoudXrp2liWspyjB5/0y98BEBdUSmImDrPnO8WIhJY/cTYeV2ytBPFgiZwKFTtW+S8gHHadZQh8JhaVETgHQmaN/jTmjVtJGLuIXwsyZDStvoCkEVjhB1EIBTZkFaKw29wQdegrDk1eROeu4Ss0GUr/oBH/cOzGjvOH3DeAJS1auCJnjb970waY/py0wgMaW5aJcwA69OIQQrMYPY79xNZZevzy90HizvkyZjsSvvXXbUnRvIvOJkwH8ZLeLxC38FMPjnBK3rD5R0Uw4foPHRXwlvd4tVwcPHnCRH/TJA9u2lTHAFnJhjw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tIIHe-0005vV-In for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2024 21:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Diancheng Wang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Dec 2024 02:05:02 +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.173319148422741 (code B ref 74642); Tue, 03 Dec 2024 02:05:02 +0000 Original-Received: (at 74642) by debbugs.gnu.org; 3 Dec 2024 02:04:44 +0000 Original-Received: from localhost ([127.0.0.1]:57253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIIHL-0005uj-JE for submit@debbugs.gnu.org; Mon, 02 Dec 2024 21:04:43 -0500 Original-Received: from m16.mail.163.com ([220.197.31.5]:38888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIIHG-0005uS-U9 for 74642@debbugs.gnu.org; Mon, 02 Dec 2024 21:04:42 -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=KV1nSd3lJbYehMnVmhAfCdduBg+41MScrkgIbFpocwY=; b=D0z3lHcsK7gKyi2v1re28HG8MgdrHXywX186Yxzr7IIMgiAXNymYdq3qsAG9b+ 0YkCQLe2TXxT4Bd4QlWzR392nfS3IuzKE2U/9zXkYFc3rnaayEZPdmnfsCt7ngSJ sFzEc30x4+3GqbzIrM48lWkUW9zr1mrHdkogrOqQSKuqQ= Original-Received: from hadleywang-LC0 (unknown [111.206.94.147]) by gzga-smtp-mtada-g0-1 (Coremail) with SMTP id _____wDn7xgvZ05ntHniCg--.37220S3; Tue, 03 Dec 2024 10:04:32 +0800 (CST) In-Reply-To: <868qsy442u.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 02 Dec 2024 15:17:13 +0200") X-CM-TRANSID: _____wDn7xgvZ05ntHniCg--.37220S3 X-Coremail-Antispam: 1Uf129KBjvJXoW7KF13WrW7Gw13XrWUAw4ktFb_yoW8Ar1fp3 W5Wa4rtFZ8J3sFy3Z7uF129a4Sva97GFW3CryDZrWFyFyjyrnIvw43Ka4FgasrZF4q9w15 Xr4DXw1DZ3yqkFDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0zRrb15UUUUU= X-Originating-IP: [111.206.94.147] X-CM-SenderInfo: xgld0u5khqwspzdqwqqrwthudrp/xtbBFQOqqWdOYFy6EgAAso 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:296347 Archived-At: Eli Zaretskii writes: >> From: Diancheng Wang >> Date: Mon, 02 Dec 2024 15:04:46 +0800 >> >> diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el >> index b60e21ff0ae..110b9f5ed46 100644 >> --- a/lisp/progmodes/gdb-mi.el >> +++ b/lisp/progmodes/gdb-mi.el >> @@ -5278,6 +5278,7 @@ gdb-reset >> (setq gud-minor-mode nil) >> (kill-local-variable 'tool-bar-map) >> (kill-local-variable 'gdb-define-alist)))))) >> + (gud-hide-current-line-indicator t) >> (setq gdb-disassembly-position nil) >> (setq overlay-arrow-variable-list >> (delq 'gdb-disassembly-position overlay-arrow-variable-list)) >> diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el >> index a4e611277e4..ffd4dd70762 100644 >> --- a/lisp/progmodes/gud.el >> +++ b/lisp/progmodes/gud.el >> @@ -3017,7 +3017,8 @@ gud-reset >> (with-current-buffer buffer >> (when gud-minor-mode >> (setq gud-minor-mode nil) >> - (kill-local-variable 'tool-bar-map)))))) >> + (kill-local-variable 'tool-bar-map))))) >> + (gud-hide-current-line-indicator t)) >> >> (defun gud-display-frame () >> "Find and obey the last filename-and-line marker from the debugger. > > 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.