Add GDB python support for Windows in GCC 14

I am requesting that python support for Windows for the ARM GNU toolchain version 14 be supported. I work with clients that build firmware for devices on host machines such as linux, mac osx and Windows. Python support is critical for a variety of our use cases:

  1. Automated testing
  2. Customization of GDB GUI
  3. Debugging utilities

It would be awful if our Windows clients cannot take advantage of the power of python that the Mac and Linux users get. Please consider adding support for python in GDB for the GCC 14 release. I've been pushing for this since GCC 13 and pushing this out to GCC 15 would delay further development in this area. My team accounts for 30 users and we expect to expand in the coming year, but we are held back by the lack of python support in GDB for testing and analysis.

  • Hi Kammce,

    We've had a look at this and it's proving more challenging than antecipated. Our current hypothesis is that to get python support to work in a mingw environment, we need to build the toolchain (or well gdb) itself in a mingw host. Our current release process cross-builds this toolchain using cross-compilers to i686 and x86_64 mingw and we will not be able to change that before our GCC 14 release. 

  • Hi Kammce,

    We've had a look at this and it's proving more challenging than antecipated. Our current hypothesis is that to get python support to work in a mingw environment, we need to build the toolchain (or well gdb) itself in a mingw host. Our current release process cross-builds this toolchain using cross-compilers to i686 and x86_64 mingw and we will not be able to change that before our GCC 14 release. 

    Thanks for the update! I really appreciate the transparency on this, it’s always good to know what’s happening behind the scenes. I ran into a similar headache a while back when trying to get Python scripts working smoothly with GDB on Windows. Ended up having to jump through some hoops with custom builds, and even then, it was a bit of a mess. Out of curiosity, what’s the biggest blocker with the mingw build? Is it mainly a dependency issue, or something deeper in the way GDB interacts with the environment? Hope there’s a good path forward, Python support in GDB would be a huge win for a lot of us

    A while back, I was working on a Python-based debugging tool, and I hit a wall trying to optimize performance for large datasets. Spent weeks tweaking memory management and profiling scripts, but something always felt off. Eventually, I came across this https://www.cogniteq.com/blog/top-python-development-companies, and it pointed me to some really solid companies that specialize in Python development. Ended up consulting with one of them, and they helped me restructure my approach in a way I hadn’t even considered, saved me a ton of time. Just wanted to share in case anyone else is stuck in a similar spot!

  • I have some good news! We have been able to build gdb for windows with python support. We must have this included with our next release.