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#61271: 30.0.50; gud makes source files un-editable Date: Sat, 04 Feb 2023 10:58:18 +0200 Message-ID: <83v8khu7rp.fsf@gnu.org> References: <87pmaqsebp.fsf@secretsauce.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12034"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61271@debbugs.gnu.org To: Dima Kogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 04 09:59:26 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 1pOEOM-0002u1-1b for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Feb 2023 09:59:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pOEO0-0006pf-1V; Sat, 04 Feb 2023 03:59: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 1pOENy-0006pD-39 for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2023 03:59: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 1pOENx-0004o0-Qk for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2023 03:59:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pOENx-0002Th-LE for bug-gnu-emacs@gnu.org; Sat, 04 Feb 2023 03:59:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Feb 2023 08:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61271 X-GNU-PR-Package: emacs Original-Received: via spool by 61271-submit@debbugs.gnu.org id=B61271.16755011069462 (code B ref 61271); Sat, 04 Feb 2023 08:59:01 +0000 Original-Received: (at 61271) by debbugs.gnu.org; 4 Feb 2023 08:58:26 +0000 Original-Received: from localhost ([127.0.0.1]:40679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOENO-0002SX-9o for submit@debbugs.gnu.org; Sat, 04 Feb 2023 03:58:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOENM-0002SH-NI; Sat, 04 Feb 2023 03:58:25 -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 1pOENG-0004gn-M0; Sat, 04 Feb 2023 03:58:18 -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=/CHpeCEB5bGHwoU3d+Zjb6mZF0v5nA3r8VF0JMl2w78=; b=NcZ4erMkq7by DDs6+YpY0Lim06JVJ9Zdie/k78IyIwLKfi6bZnzma+QP2e43FEuAbfNRgKfwUyrGXsue6Y65sSt/+ 5bwPusCng9x4CGHgo8rZEXH/viXsBltEtGaLN8Clt8FMTFjsaE702uy0BOiLoOmElDJ6I36j8i95G GbZ2800Tub97V82MI6MmI8u/ETR19JCgsdcHrandO/9FILDTKbyC/LkTvdt73SRytFDfNKbBicQZ3 Lv8/rdhakyEKalu4JHsanBJwU8/b9Arz6AdyavrqfZjiWUT4U/komhPniASKx/qqEZDrI5a7cpSyU dstASvFi8/zyl6PzpeN/rw==; 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 1pOENA-0003n1-AJ; Sat, 04 Feb 2023 03:58:16 -0500 In-Reply-To: <87pmaqsebp.fsf@secretsauce.net> (message from Dima Kogan on Fri, 03 Feb 2023 12:07:22 -0800) 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:254763 Archived-At: merge 61162 61271 thanks > From: Dima Kogan > Date: Fri, 03 Feb 2023 12:07:22 -0800 > > Hi. I'm using a bleeding edge build of emacs from git. This issue is > recent: probably a few weeks old at most. Recipe: > > 1. Create any debuggable C program. For instance I just made a > tst.c: > > int main(int argc, char* argv[]) > { > return 0; > } > > And I built it like this: > > gcc -g -o tst tst.c > > 2. emacs -Q tst.c > > 3. M-x gud-gdb ... gdb --fullname tst > > 4. b main > > 5. r > > We're now debugging the executable tst, and we're at a breakpoint in > tst.c. emacs should show the breakpoint in the tst.c buffer > > 6. Switch to the tst.c buffer > > 7. Press RET > > tst.c is a source buffer. "RET" should insert a newline. Instead emacs > throws an error > > comint-send-input: Current buffer has no process > > Pressing f1-b I see that tst.c is in gud-minor-mode (although this > doesn't show up in f1-m for some reason). This mode defines the RET > binding, and is the source of this problem. This is a duplicate of bug#61162. If no one comes with a better solution, I will at some point revert on master the change whose fallout causes this (it was already reverted on emacs-29, but not on master, since I still hope someone will have an idea how to fix that properly). However, in general I suggest to switch to using "M-x gdb" instead of "M-x gud-gdb", since the latter uses deprecated capabilities of GDB itself, and can stop working any day, if the GDB developers decide to remove those capabilities.