Skip to content

Commit

Permalink
install gdb packages always
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Nov 1, 2023
1 parent cc863f0 commit d076cd6
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,15 @@ def configure_default_packages(self, variables, targets):
if os.path.isdir("ulp"):
self.packages["toolchain-esp32ulp"]["optional"] = False

if "espidf" in frameworks:
# Starting from v12, Espressif's toolchains are shipped without
# bundled GDB. Instead, it's distributed as separate packages for Xtensa
# and RISC-V targets.
for gdb_package in ("tool-xtensa-esp-elf-gdb", "tool-riscv32-esp-elf-gdb"):
self.packages[gdb_package]["optional"] = False
if IS_WINDOWS:
# Note: On Windows GDB v12 is not able to
# launch a GDB server in pipe mode while v11 works fine
self.packages[gdb_package]["version"] = "~11.2.0"
# Starting from v12, Espressif's toolchains are shipped without
# bundled GDB. Instead, it's distributed as separate packages for Xtensa
# and RISC-V targets.
for gdb_package in ("tool-xtensa-esp-elf-gdb", "tool-riscv32-esp-elf-gdb"):
self.packages[gdb_package]["optional"] = False
if IS_WINDOWS:
# Note: On Windows GDB v12 is not able to
# launch a GDB server in pipe mode while v11 works fine
self.packages[gdb_package]["version"] = "~11.2.0"

# Common packages for IDF and mixed Arduino+IDF projects
self.packages["toolchain-esp32ulp"]["optional"] = False
Expand Down

0 comments on commit d076cd6

Please sign in to comment.