eclipse-cdt-cloud/cdt-gdb-adapter

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

Opened this issue · 10 comments

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 :) ).

Ping. Any update on this?

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.

tromey commented

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

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.

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

#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
**
_

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.

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.

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

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