How do i load.gdbinit on gdb startup If you run gdb, enter pi to get into the python shell, then issue the commands import sys and sys.version, is sys.version reporting 3.12.2 I ask because that seems like very odd combination, i.e A very very old versionof gdb running an almost current version of python. I have a fresh installtion of qt creator on windows 11 pro At first python was not setup until i received an error warning from qt creator while starting the mingw debugger.
It greatly simplifies the display of complex objects This mechanism works for both mi and the cli My ~/.gdbinit now looks like this Python import sys sys.path.insert(0, '/opt/ Overview python scripting does not work for the gdb built for windows (gdb) python print (test) python scripting is not supported in this copy of gdb
For testing this, i have posted a bash script, gdb_py_so_test.sh, which creates an executable with a counting thread function, and both plain distutils and swig modules (in both debug and release versions) that.
WATCH