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

When debugging native Windows executables, GDB 13 or newer is required to be able to pause #99

Open
dschaefer opened this issue May 23, 2019 · 10 comments
Labels
enhancement New feature or request

Comments

@dschaefer
Copy link
Contributor

CDT has a complex system for sending gdb a Control C event to get it to pause. We'll need to bring that over and update it (still works with Windows 2000 though :) ).

@tmirza
Copy link

tmirza commented Mar 1, 2022

Ping. Any update on this?

@jonahgraham
Copy link
Contributor

Pause does not work still on Windows native debugging. It works whereever we can run GDB async, which is generally all targets except native windows.

@jonahgraham jonahgraham added the enhancement New feature or request label Jan 31, 2023
@jonahgraham jonahgraham changed the title Pause doesn't work on Windows Pause doesn't work when debugging native windows executables Jan 31, 2023
@tromey
Copy link

tromey commented Jun 20, 2023

Pause does not work still on Windows native debugging. It works whereever we can run GDB async, which is generally all targets except native windows.

Windows target-async was implemented last year: https://sourceware.org/pipermail/gdb-patches/2022-August/191190.html

@jonahgraham
Copy link
Contributor

Thanks @tromey - I appreciate pointing me at that update. I'll try a newer version of GDB on Windows and we'll advertise that as the minimum version.

@noneghost
Copy link
Contributor

Whether it is caused by the special mechanism of CTRL-C-EVENT on Windows

@noneghost
Copy link
Contributor

noneghost commented Jul 5, 2023

#99 (comment)

I tried this version GCC 13.1.0 (with POSIX threads) + LLVM/Clang/LLD/LLDB 16.0.5 + MinGW-w64 11.0.0 (UCRT) - release 5 (LATEST) https://github.com/brechtsanders/winlibs_mingw/releases/download/13.1.0-16.0.5-11.0.0-ucrt-r5/winlibs-x86_64-posix-seh-gcc-13.1.0-llvm-16.0.5-mingw-w64ucrt-11.0.0-r5.7z of gdb async is pauspendable. GDB version is **GNU gdb (GDB for MinGW-W64 x86_64, built by Brecht Sanders) 13.2
**
_

@jonahgraham
Copy link
Contributor

Thanks @noneghost for testing this.

[...] we'll advertise that as the minimum version.

Therefore GDB 13 is the minimum version on Windows host to support native debugging. I am not sure where to document it. For now I am going to change the title of this bug.

@jonahgraham jonahgraham changed the title Pause doesn't work when debugging native windows executables When debugging native Windows executables, GDB 13 or newer is required to be able to pause Jul 5, 2023
@noneghost
Copy link
Contributor

Thanks @noneghost for testing this.

[...] we'll advertise that as the minimum version.

Therefore GDB 13 is the minimum version on Windows host to support native debugging. I am not sure where to document it. For now I am going to change the title of this bug.

I'm not sure if this is the least supported version, I'm using the latest version provided by winlibs.com. I'll confirm the other versions tomorrow.

@jonahgraham
Copy link
Contributor

Thanks @noneghost - I appreciate the contribution and effort in doing these tests!

@noneghost
Copy link
Contributor

noneghost commented Jul 6, 2023

Thanks @noneghost for testing this.

[...] we'll advertise that as the minimum version.

Therefore GDB 13 is the minimum version on Windows host to support native debugging. I am not sure where to document it. For now I am going to change the title of this bug.

I tried other versions of gdb and GDB 12.1 is not asynchronous. GDB13 should be the smallest supported version.

I saw on gdb's official website News that version 13.1 supports window asynchrony. GDB news

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

No branches or pull requests

5 participants