cancel
Showing results for 
Search instead for 
Did you mean: 

"Python scripting is not supported in this copy of GDB"

CTapp.1
Senior

Split from https://community.st.com/t5/stm32-mcus-boards-and-hardware/st-link-contolled-by-python/td-p/677553


Could you please give an update on this?

I just ran "help python" within arm-none-eabi-gdb (IDE version 1.17.0) and got:

(gdb) help python python, py Evaluate a Python command. Python scripting is not supported in this copy of GDB. This command is only a placeholder.

It would be nice to know if this will be implemented at some point.

My use case is similar to the OP - collection of target execution history within a unit test environment. I current have a Python script that controls the GDB server and runs the client with a command file, but it would be easier to use Python directly.

Edited to correct IDE version.

4 REPLIES 4

@CTapp.1 wrote:

I just ran "help python" within arm-none-eabi-gdb (IDE version 1.18.0) .


Is that specific to just what ST ships with CubeIDE, or is it general for any arm-none-eabi-gdb ?

Or, in fact, for any GDB?

Or external Python resources it can call or access. 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

That was for the GDB shipped with CubeIDE 1.17.0 (incorrectly reported as 1.18.0 in my original post).

I do not have any others to try.

Pavel A.
Evangelist III
...\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256\tools\bin>"arm-none-eabi-gdb.exe" --configuration This GDB was configured as follows: ......................... --without-python --without-python-libdir ..... etc.

 

It would be nice to know if this will be implemented at some point.

This is non-trivial amount of work. Just because it 'would be nice'? Users that really need python in gdb, can bring their own arm-non-eabi-gdb  (or ask someone else to build it).