gdb not working properly in Cygwin

Ken Brown kbrown@cornell.edu
Thu Jan 21 23:30:49 GMT 2021


On 1/21/2021 5:27 PM, Tord Andreasson via Cygwin wrote:
> Hi,
> 
> I encounter the same issue too.
> 
> gdb starts however there is no gdb prompt, nothing is echoed and nothing is
> printed on the bash window except an empty blank line. From now you operate
> blindfolded.
> 
> Debugging a simple application that prints "Hello World" on file
> demonstrates that gdb loads the application and is responsive to commands;
> "run" will run the program to its completion, and "quit" will return to the
> bash prompt.
> 
> I tried "strace -o /tmp/gdb.strace /usr/bin/gdb --version" and indeed there
> are lines with 37 error messages in it. Since the trace file is large (2MB)
> I have extracted the lines containing the error messages and attached them
> to this email. I can attach the full gdb.strace if that is needed.
> 
> I have no insight into what these errors are and how to remedy or
> workaround them, any help would be appreciated.

Many errors are to be expected, so your excerpt of gdb.strace doesn't really 
tell us much.  Please post the full strace output somewhere.  And please send 
cygcheck output *as an attachment* as instructed here:

   https://cygwin.com/problems.html

Ken




More information about the Cygwin mailing list