"Python scripting is not supported in this copy of GDB"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-20 4:45 AM - edited ‎2025-03-20 11:29 AM
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.
- Labels:
-
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-20 4:52 AM
@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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-20 5:30 AM
Or external Python resources it can call or access.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-20 10:56 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-20 2:53 PM - edited ‎2025-03-20 3:54 PM
...\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).
