Page 1 of 1

xtensa-esp32-elf-gdb compiled using --with-python

Posted: Fri Jul 07, 2023 10:53 am
by wmattias
Hi,

The standard xtensa-esp32-elf-gdb that ships with esp-idf appears to be compiled without Python API support.
Would be great to have this by default as it's a great help when automating debugging or creating custom extensions, but in the meantime:

I can't seem to be able to locate the sourcecode for xtensa-esp32-elf-gdb (so that I can recompile it with Python API support). Is it available somewhere?

Re: xtensa-esp32-elf-gdb compiled using --with-python

Posted: Fri Jul 07, 2023 6:52 pm
by ESP_igrr
Hi wmattias,

Recent GDB releases we publish at https://github.com/espressif/binutils-gdb/releases come with several binaries built for different versions of Python. The source code they are built from is available in the same repository.

(The links to GDB, GCC and other repositories are available in this section of the programming guide: https://docs.espressif.com/projects/esp ... -idf-tools)

If you are using recent versions of IDF (v5.0 or later) then this GDB built with Python support should already get installed. If that's not happening, or if Python support is not working, please share more information about your system.