cgdb fails with cygwin 3.2.0 but is OK with 3.1.6

René Berber
Tue Apr 13 17:55:55 GMT 2021

On 4/13/2021 9:05 AM, Arthur Norman via Cygwin wrote:

> With the latest cygwin if I go "gcc -O0 -g hello.c -o hello" then "cgdb 
> ./hello", break main, run then cgdb exits abruptly without sign on 
> actually starting my code. If I use just gdb not cgdb all is OK. If I 
> try "gcd -tui hello" I can single step my code but the display in the 
> top half of the window is damaged - eg after a couple of steps it shows 
> lines 5 and 6 of the source code twice each, but once normally and once 
> in inverted video.
> Raw seems to gdb lets me step the code about as expected.
> If I revert just the cygwin package from 3.2.0-1 to 3.1.6-1 things 
> appear to behave as I would expect. 3.1.7-1 possibly had -tui issues and 
> led to cgdb stalling on my large and broken example code which is why I 
> report 3.1.6-1 as the baseline.

At one time it was recommended to disable a Cygwin feature, something 
like this:

alias cgdb="env CYGWIN=disable_pcon cgdb"

Not sure if this is still necesary.

More information about the Cygwin mailing list