all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: juanjose.garciaripoll@gmail.com
Cc: emacs-devel@gnu.org
Subject: Re: gdb fails to flush output (msys2)
Date: Mon, 14 Mar 2022 20:40:52 +0200	[thread overview]
Message-ID: <834k40js23.fsf@gnu.org> (raw)
In-Reply-To: <837d8wjsur.fsf@gnu.org> (message from Eli Zaretskii on Mon, 14 Mar 2022 20:23:40 +0200)

> Date: Mon, 14 Mar 2022 20:23:40 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: emacs-devel@gnu.org
> 
> > Starting program: c:\home\juanjo\src\tensor\build-msys2-ucrt64\tests\test_rand.exe 
> > [New Thread 9944.0x1a28]
> > [New Thread 9944.0x28c0]
> > [New Thread 9944.0x3a00]
> > <--- Here it stops. If I press <enter> it shows the console output.
> 
> This seems to indicate that there's some incompatibility between the
> way GDB outputs stuff to its stdout and the device/program which
> displays that stuff.  I don't yet understand well enough what you are
> doing differently from the "usual" use of GDB on MS-Windows (which
> works just fine), so I cannot tell anything more intelligent.  UCRT
> may or may not be a part of the problem, but I don't have any
> experience with using Windows programs linked against UCRT instead of
> MSVCRT.

One possible issue could be with buffering.  Maybe the program you
debug uses line buffering for its output, and that somehow need the
extra Enter?  Just a thought; needless to say, I see no such problems
when I debug from Emacs on.

Can you show how that program behaves when invoked from the system
shell, not under the debugger?  Also, if you invoke "M-x shell" inside
Emacs, and then run that program from the inferior shell, does it
behave correctly, or does it also hangs until you type Enter?



  reply	other threads:[~2022-03-14 18:40 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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

  git send-email \
    --in-reply-to=834k40js23.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=juanjose.garciaripoll@gmail.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.