all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: StrawberryTea <look@strawberrytea.xyz>
To: Eli Zaretskii <eliz@gnu.org>
Cc: luangruo@yahoo.com, 65007@debbugs.gnu.org
Subject: bug#65007: [PATCH] Allow displaying program IO in the GDB buffer.
Date: Sat, 16 Sep 2023 01:08:44 -0500	[thread overview]
Message-ID: <87ttrulk96.fsf@strawberrytea.xyz> (raw)
In-Reply-To: <8334zek606.fsf@gnu.org>

Yeah, I added `org-msg' and I have been trying to figure out how to send
a patch with it. Probably I would need to put it in a source block. But
I just turned that off

* lisp/progmodes/gdb-mi.el (gdb-split-io-flag): Don't create IO
buffer if `gdb-split-io-flag'.
(gdb-split-io-flag): New user option.
---
 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 42c1c715c73..8ce5df6e0c7 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -1098,9 +1098,10 @@ gdb-init-1
                      (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 @@ gdb-display-io-nopopup
   :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.42.0
Eli Zaretskii <eliz@gnu.org> writes:

>> From: StrawberryTea <look@strawberrytea.xyz>
>> Cc: luangruo@yahoo.com, 65007@debbugs.gnu.org
>> Date: Sat, 16 Sep 2023 00:38:21 -0500
>>
>> Yup. Here it is.
>
> Thanks.  But did you forget to attach the patch?  I see a strangely
> formatted patch, with some Unicode symbols instead of ASCII characters
> I expect to see in diffs.
>
>> By the way, is there any information on debugging or stepping through the display engine?
>
> Yes, see etc/DEBUG, under "Debugging Emacs redisplay problems".





  reply	other threads:[~2023-09-16  6:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-28  0:33 bug#65007: [PATCH] Allow displaying program IO in the GDB buffer StrawberryTea
2023-08-02 13:38 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-26 18:37   ` StrawberryTea
2023-08-27  8:01     ` Eli Zaretskii
2023-09-15  6:52       ` Eli Zaretskii
2023-09-16  5:38         ` StrawberryTea
2023-09-16  6:05           ` Eli Zaretskii
2023-09-16  6:08             ` StrawberryTea [this message]
2023-09-16 10:44               ` Eli Zaretskii
2023-09-18  4:14                 ` StrawberryTea
2023-09-18 10:56                   ` Eli Zaretskii

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

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

  git send-email \
    --in-reply-to=87ttrulk96.fsf@strawberrytea.xyz \
    --to=look@strawberrytea.xyz \
    --cc=65007@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=luangruo@yahoo.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.