all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dima Kogan <dkogan@debian.org>
Cc: 61271@debbugs.gnu.org
Subject: bug#61271: 30.0.50; gud makes source files un-editable
Date: Sat, 04 Feb 2023 10:58:18 +0200	[thread overview]
Message-ID: <83v8khu7rp.fsf@gnu.org> (raw)
In-Reply-To: <87pmaqsebp.fsf@secretsauce.net> (message from Dima Kogan on Fri,  03 Feb 2023 12:07:22 -0800)

merge 61162 61271
thanks

> From: Dima Kogan <dkogan@debian.org>
> 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.





  reply	other threads:[~2023-02-04  8:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-03 20:07 bug#61271: 30.0.50; gud makes source files un-editable Dima Kogan
2023-02-04  8:58 ` Eli Zaretskii [this message]
2023-02-14 23:38   ` Dima Kogan
2023-02-15 12:48     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83v8khu7rp.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=61271@debbugs.gnu.org \
    --cc=dkogan@debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.