unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Knut Anders Hatlen <kahatlen@gmail.com>
Cc: 69327-done@debbugs.gnu.org
Subject: bug#69327: 29.2.50; Emacs crashes when running gdb with comint-prompt-read-only
Date: Sat, 24 Feb 2024 15:14:27 +0200	[thread overview]
Message-ID: <864jdyypfw.fsf@gnu.org> (raw)
In-Reply-To: <87edd2t4pu.fsf@gmail.com> (message from Knut Anders Hatlen on Sat, 24 Feb 2024 13:41:01 +0100)

> From: Knut Anders Hatlen <kahatlen@gmail.com>
> Cc: 69327@debbugs.gnu.org
> Date: Sat, 24 Feb 2024 13:41:01 +0100
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > OK, so please try this change, it seems to fix the problem for me:
> >
> > diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
> > index d119eeb..312b71b 100644
> > --- a/lisp/progmodes/gdb-mi.el
> > +++ b/lisp/progmodes/gdb-mi.el
> > @@ -1849,7 +1849,8 @@ gdb-io-eof
> >  
> >  (defun gdb-clear-inferior-io ()
> >    (with-current-buffer (gdb-get-buffer-create 'gdb-inferior-io)
> > -    (erase-buffer)))
> > +    (let ((inhibit-read-only t))
> > +      (erase-buffer))))
> >  \f
> >  
> >  (defconst breakpoint-xpm-data
> > @@ -2819,7 +2820,8 @@ gdb-append-to-partial-output
> >  
> >  (defun gdb-clear-partial-output ()
> >    (with-current-buffer (gdb-get-buffer-create 'gdb-partial-output-buffer)
> > -    (erase-buffer)))
> > +    (let ((inhibit-read-only t))
> > +      (erase-buffer))))
> >  
> >  ;; Parse GDB/MI result records: this process converts
> >  ;;  list      [...]      ->  list
> 
> It fixes the problem for me too. Thanks a lot!

Thanks, installed on the emacs-29 branch, and closing the bug.





      reply	other threads:[~2024-02-24 13:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <wjo88r3bpk1b.fsf@oracle.com>
2024-02-23 15:41 ` bug#69327: 29.2.50; Emacs crashes when running gdb with comint-prompt-read-only Eli Zaretskii
2024-02-23 20:16   ` Knut Anders Hatlen
2024-02-24  8:40     ` Eli Zaretskii
2024-02-24 12:41       ` Knut Anders Hatlen
2024-02-24 13:14         ` Eli Zaretskii [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=864jdyypfw.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=69327-done@debbugs.gnu.org \
    --cc=kahatlen@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).