GNU bug report logs - #64914
[PATCH] * gdb-mi.el: allow disabling the gdb io buffer

Previous Next

Package: emacs;

Reported by: StrawberryTea <look <at> strawberrytea.xyz>

Date: Fri, 28 Jul 2023 07:12:03 UTC

Severity: wishlist

Tags: moreinfo

Merged with 64913

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: StrawberryTea <look <at> strawberrytea.xyz>
Subject: bug#64913: closed (Re: bug#64914: [PATCH] * gdb-mi.el: allow
 disabling the gdb io buffer)
Date: Mon, 17 Feb 2025 15:43:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#64914: [PATCH] * gdb-mi.el: allow disabling the gdb io buffer

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 64913 <at> debbugs.gnu.org.

-- 
64914: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64914
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: 64914-done <at> debbugs.gnu.org
Subject: Re: bug#64914: [PATCH] * gdb-mi.el: allow disabling the gdb io buffer
Date: Mon, 17 Feb 2025 17:41:39 +0200
> Cc: 64914 <at> debbugs.gnu.org
> Date: Mon, 17 Feb 2025 14:18:27 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> > From: StrawberryTea <look <at> strawberrytea.xyz>
> > Date: Sun, 16 Feb 2025 20:24:16 -0500
> > 
> > Eli Zaretskii <eliz <at> gnu.org> writes:
> > 
> > >> From: Stefan Kangas <stefankangas <at> gmail.com>
> > >> Date: Thu, 13 Feb 2025 02:07:41 -0600
> > >> Cc: LemonBreezes <look <at> strawberrytea.xyz>, 64914 <at> debbugs.gnu.org
> > >>
> > >> Eli Zaretskii <eliz <at> gnu.org> writes:
> > >>
> > >> > But OK, if someone wants to downgrade gdb-mi this way, why not them
> > >> > have it.
> > >>
> > >> I'd actually rather lean towards closing this towards as a wontfix.
> > >
> > > I don't mind, but maybe the OP does.
> > Actually, the patch implementing gdb-display-io-buffer as a configurable
> > option was already merged into master a long time ago. It's in Emacs 30.1.
> 
> Thanks, closing.
> 
> 
> 
> 

[Message part 3 (message/rfc822, inline)]
From: StrawberryTea <look <at> strawberrytea.xyz>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] * gdb-mi.el: allow disabling the gdb io buffer
Date: Thu, 27 Jul 2023 20:33:39 -0400
This change allows the user to disable the `gdb-inferior-io' buffer.
This is useful for users that prefer a more classical gdb experience
where you just have the GDB window and the source window.
---
 lisp/progmodes/gdb-mi.el | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index a1091de43e9..0d6d7ab02c0 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -1098,9 +1098,10 @@ detailed description of this mode.
                      (if gdb-debuginfod-enable "on" "off"))
              'gdb-debuginfod-message)
 
-  (gdb-get-buffer-create 'gdb-inferior-io)
-  (gdb-clear-inferior-io)
-  (gdb-inferior-io--init-proc (get-process "gdb-inferior"))
+  (when gdb-display-io-buffer
+    (gdb-get-buffer-create 'gdb-inferior-io)
+    (gdb-clear-inferior-io)
+    (gdb-inferior-io--init-proc (get-process "gdb-inferior")))
 
   (when (eq system-type 'windows-nt)
     ;; Don't create a separate console window for the debuggee.
@@ -1828,6 +1829,13 @@ this trigger is subscribed to `gdb-buf-publisher' and called with
   :group 'gdb
   :version "25.1")
 
+(defcustom gdb-display-io-buffer t
+  "When non-nil, display the `gdb-inferior-io' buffer.  Otherwise,
+send program output to the GDB buffer."
+  :type 'boolean
+  :group 'gdb
+  :version "30.1")
+
 (defun gdb-inferior-filter (proc string)
   (unless (string-equal string "")
     (let (buf)
-- 
2.41.0





This bug report was last modified 185 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.