[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#69327: 29.2.50; Emacs crashes when running gdb with comint-prompt-re
From: |
Knut Anders Hatlen |
Subject: |
bug#69327: 29.2.50; Emacs crashes when running gdb with comint-prompt-read-only |
Date: |
Sat, 24 Feb 2024 13:41:01 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
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))))
>
>
> (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!
--
Knut Anders