Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDB TUI broken #10434

Closed
GitMensch opened this issue Dec 28, 2021 · 2 comments · Fixed by #15642
Closed

GDB TUI broken #10434

GitMensch opened this issue Dec 28, 2021 · 2 comments · Fixed by #15642
Labels

Comments

@GitMensch
Copy link
Contributor

I have no clue since when this occurs or if this was never working, I guess so, because it is already referenced in #1744...

gdb ./myconsole.exe -x start --> works fine
gdb ./myconsole.exe -tui -ex start --> results in "During startup program exited with code 0xc0000142."

As also analyzed in the referenced issue by @dimztimz this is related to the console handles. The only thing that looks bad is the following, seeing this issue persists over 5 years later:

a new feature that is buggy in a very specific case and that will be sorted out in the future

Maybe the future is now :-)

The work around, as mentioned by him still works:

 gdb ./myconsole.exe -tui -ex 'set new-console on' -ex start

If we can't get that to work reliably I suggest we add a patch to always enable new-console when in tui-mode.

Note: if we do it the other way around it does work:

 gdb ./myconsole.exe -ex start -ex 'tui enable'

(in this case you "obviously" need to temporarily disable the tui to see the display because that doesn't happen on the same console)

@ssbssa
Copy link

ssbssa commented Feb 12, 2023

If ncurses is updated to the latest patch, then this bug should be fixed (the CreateConsoleScreenBuffer() call was the problem).

@Biswa96
Copy link
Member

Biswa96 commented Feb 12, 2023

Would you like to test the packages from GitHub Actions artifacts of that pull request? The test packages can be downloaded from here https://github.com/msys2/MINGW-packages/actions/runs/4156876469

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants