From: "Juan José García-Ripoll" <juanjose.garciaripoll@gmail.com>
To: emacs-devel@gnu.org
Subject: gdb fails to flush output (msys2)
Date: Mon, 14 Mar 2022 12:18:22 +0100 [thread overview]
Message-ID: <86y21caikh.fsf@csic.es> (raw)
Hi,
I am trying to debug some programs on Windows using MSYS2. In doing so,
I noticed that the gdb mode is not working well with the output from the
debugger.
Specifically, when I start the debugger I get the expected prompt. I can
also issue simple commands, such as "help", or "target exec". However,
once I press run and my program executes, the output from the program is
withheld. This output appears if I press ENTER again, but when I do so,
the program's output appears again and again -- it seems as if it was
reinterpreted as part of the prompt.
GDB is currently invoked through a wrapper I set up to find the
executable https://github.com/juanjosegarciaripoll/project-cmake
However, the same problem is witnessed with a modern installation of
MSYS2 and this little elisp script:
(let* ((msys2 "C:/msys64/ucrt64/bin")
(path (concat msys2 ";" (getenv "PATH")))
(default-process-coding-system 'utf-8-unix)
(process-environment (cl-list* (concat "PATH=" path)
"MSYSTEM=ucrt64"
process-environment)))
(call-interactively #'gdb))
Best,
--
Juan José García Ripoll
http://juanjose.garciaripoll.com
http://quinfog.hbar.es
next reply other threads:[~2022-03-14 11:18 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-14 11:18 Juan José García-Ripoll [this message]
2022-03-14 13:33 ` gdb fails to flush output (msys2) Eli Zaretskii
2022-03-14 17:55 ` Juan José García-Ripoll
2022-03-14 18:23 ` Eli Zaretskii
2022-03-14 18:40 ` Eli Zaretskii
2022-03-15 9:58 ` Juan José García-Ripoll
2022-03-15 11:48 ` Jostein Kjønigsen
2022-03-15 13:24 ` Juan José García-Ripoll
2022-03-15 13:33 ` Juan José García-Ripoll
2022-03-15 14:34 ` Eli Zaretskii
2022-03-15 14:40 ` Juan José García-Ripoll
2022-03-15 16:47 ` Eli Zaretskii
2022-03-15 17:38 ` Juan José García-Ripoll
2022-03-15 17:56 ` Eli Zaretskii
2022-03-15 15:12 ` Juan José García-Ripoll
2022-03-15 16:53 ` Eli Zaretskii
2022-03-15 14:25 ` 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86y21caikh.fsf@csic.es \
--to=juanjose.garciaripoll@gmail.com \
--cc=emacs-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).