GNU bug report logs -
#61271
30.0.50; gud makes source files un-editable
Previous Next
Reported by: Dima Kogan <dkogan <at> debian.org>
Date: Sat, 4 Feb 2023 07:47:03 UTC
Severity: normal
Merged with 61162,
62041
Found in version 30.0.50
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 61271 in the body.
You can then email your comments to 61271 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#61271
; Package
emacs
.
(Sat, 04 Feb 2023 07:47:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Dima Kogan <dkogan <at> debian.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 04 Feb 2023 07:47:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
Thanks
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#61271
; Package
emacs
.
(Sat, 04 Feb 2023 08:59:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 61271 <at> debbugs.gnu.org (full text, mbox):
merge 61162 61271
thanks
> From: Dima Kogan <dkogan <at> 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.
Merged 61162 61271.
Request was from
Eli Zaretskii <eliz <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 04 Feb 2023 08:59:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#61271
; Package
emacs
.
(Tue, 14 Feb 2023 23:43:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 61271 <at> debbugs.gnu.org (full text, mbox):
Hi Eli.
Thanks for the pointer. I just tried out M-x gdb instead of M-x gud-gdb
as you suggested here. It appears to have the same issue though: RET in
the buffer being debugged reports the same error. And it still looks
like it's using gud internally. f1-m says:
The major mode is Debugger mode defined in gud.el:
Is this right? I'm seeing this with 'emacs -Q'. This build is a few
weeks old, so maybe this is addressed in the latest release? I'm using a
build from 2023/01/25 at 8b87d095acf.
Thanks
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#61271
; Package
emacs
.
(Wed, 15 Feb 2023 12:50:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 61271 <at> debbugs.gnu.org (full text, mbox):
> From: Dima Kogan <dima <at> secretsauce.net>
> Cc: Dima Kogan <dkogan <at> debian.org>, 61271 <at> debbugs.gnu.org
> Date: Tue, 14 Feb 2023 15:38:28 -0800
>
> Thanks for the pointer. I just tried out M-x gdb instead of M-x gud-gdb
> as you suggested here. It appears to have the same issue though: RET in
> the buffer being debugged reports the same error. And it still looks
> like it's using gud internally. f1-m says:
>
> The major mode is Debugger mode defined in gud.el:
I didn't say switching to "M-x gdb" will solve this particular
problem. See the rest of my original response: this is a known issue
on master. Until we find a way to fix that, I suggest to either stay
with emacs-29 or make your local changes on master like we did on
emacs-29 with commits 3623d5c195 and 641ef36403.
Merged 61162 61271 62041.
Request was from
Stefan Monnier <monnier <at> iro.umontreal.ca>
to
control <at> debbugs.gnu.org
.
(Wed, 08 Mar 2023 20:13:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 08 Apr 2023 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 18 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.