all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* gdb fails to flush output (msys2)
@ 2022-03-14 11:18 Juan José García-Ripoll
  2022-03-14 13:33 ` Eli Zaretskii
  0 siblings, 1 reply; 17+ messages in thread
From: Juan José García-Ripoll @ 2022-03-14 11:18 UTC (permalink / raw)
  To: emacs-devel

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




^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-03-15 17:56 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-14 11:18 gdb fails to flush output (msys2) Juan José García-Ripoll
2022-03-14 13:33 ` 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

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.