cdt-gdb-adapter icon indicating copy to clipboard operation
cdt-gdb-adapter copied to clipboard

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

Open dschaefer opened this issue 6 years ago • 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 :) ).

dschaefer avatar May 23 '19 19:05 dschaefer

Ping. Any update on this?

tmirza avatar Mar 01 '22 09:03 tmirza

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 avatar Jan 31 '23 02:01 jonahgraham

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

tromey avatar Jun 20 '23 17:06 tromey

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.

jonahgraham avatar Jun 20 '23 18:06 jonahgraham

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

noneghost avatar Jul 04 '23 06:07 noneghost

https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter/issues/99#issuecomment-1599227454

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

noneghost avatar Jul 05 '23 11:07 noneghost

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 avatar Jul 05 '23 15:07 jonahgraham

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.

noneghost avatar Jul 05 '23 15:07 noneghost

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

jonahgraham avatar Jul 05 '23 15:07 jonahgraham

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

noneghost avatar Jul 06 '23 02:07 noneghost