[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master f44c1969b6f 2/2: ; Fix last change in gdb-mi.el
From: |
Eli Zaretskii |
Subject: |
master f44c1969b6f 2/2: ; Fix last change in gdb-mi.el |
Date: |
Sat, 16 Sep 2023 06:41:56 -0400 (EDT) |
branch: master
commit f44c1969b6fae3651ca6cc5e077e5f6430a6b57b
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
; Fix last change in gdb-mi.el
* lisp/progmodes/gdb-mi.el (gdb-display-io-buffer): Move to before
the first use. Doc fix. Change the group to 'gdb-buffers'.
* etc/NEWS: Announce the new option. (Bug#65007)
---
etc/NEWS | 10 +++++++++-
lisp/progmodes/gdb-mi.el | 14 +++++++-------
2 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/etc/NEWS b/etc/NEWS
index c618f3dafa6..5522217bb4d 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -243,8 +243,9 @@ functions in CJK locales.
* Changes in Specialized Modes and Packages in Emacs 30.1
+** gdb-mi
---
-** Variable order and truncation can now be configured in 'gdb-many-windows'.
+*** Variable order and truncation can now be configured in 'gdb-many-windows'.
The new user option 'gdb-locals-table-row-config' allows users to
configure the order and max length of various properties in the local
variables buffer when using 'gdb-many-windows'.
@@ -259,6 +260,13 @@ If you want to get back the old behavior, set the user
option to the value
(setopt gdb-locals-table-row-config
`((type . 0) (name . 0) (value . ,gdb-locals-value-limit)))
+---
+*** New user option 'gdb-display-io-buffer'.
+If this is nil, "M-x gdb" will neither create nor display a separate
+buffer for the I/O of the program being debugged, but will instead
+redirect the program's interaction to the GDB execution buffer. The
+default is t, to preserve previous behavior.
+
** Grep
*** New user option 'grep-use-headings'.
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index 8ce5df6e0c7..bc0070d2630 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -716,6 +716,13 @@ that GDB starts to reuse existing source windows."
:group 'gdb
:version "28.1")
+(defcustom gdb-display-io-buffer t
+ "When non-nil, display the separate `gdb-inferior-io' buffer.
+Otherwise, send program output to the GDB buffer."
+ :type 'boolean
+ :group 'gdb-buffers
+ :version "30.1")
+
(defvar gdbmi-debug-mode nil
"When non-nil, print the messages sent/received from GDB/MI in *Messages*.")
@@ -1829,13 +1836,6 @@ 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)