GNU bug report logs - #64913
[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:02 UTC

Severity: wishlist

Tags: moreinfo

Merged with 64914

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

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 64913 in the body.
You can then email your comments to 64913 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#64913; Package emacs. (Fri, 28 Jul 2023 07:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to StrawberryTea <look <at> strawberrytea.xyz>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 28 Jul 2023 07:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#64913; Package emacs. (Fri, 28 Jul 2023 11:19:01 GMT) Full text and rfc822 format available.

Message #8 received at 64913 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: StrawberryTea <look <at> strawberrytea.xyz>
Cc: 64913 <at> debbugs.gnu.org
Subject: Re: bug#64913: [PATCH] * gdb-mi.el: allow disabling the gdb io buffer
Date: Fri, 28 Jul 2023 14:19:00 +0300
merge 64913 64914
thanks

> From: StrawberryTea <look <at> strawberrytea.xyz>
> 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.

Looks like you submitted the same bug report twice...

My response here is the same: I think gdb-display-io-nopopup already
can handle this situation.




Merged 64913 64914. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 28 Jul 2023 11:19:02 GMT) Full text and rfc822 format available.

Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 13 Feb 2025 08:06:04 GMT) Full text and rfc822 format available.

Added tag(s) moreinfo. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 13 Feb 2025 08:59:02 GMT) Full text and rfc822 format available.

Removed tag(s) patch. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 13 Feb 2025 08:59:03 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. (Tue, 18 Mar 2025 11:24:17 GMT) Full text and rfc822 format available.

This bug report was last modified 51 days ago.

Previous Next


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