Skip to content

Commit 3a1bd3d

Browse files
committed
Add support for esp-elf-gdb
1 parent 7d26bf8 commit 3a1bd3d

File tree

4 files changed

+142
-2
lines changed

4 files changed

+142
-2
lines changed

Diff for: .github/scripts/on-release.sh

+2
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,9 @@ sed "s/version=.*/version=$ver$extent/g" | \
200200
sed 's/tools.xtensa-esp32-elf-gcc.path={runtime.platform.path}\/tools\/xtensa-esp32-elf/tools.xtensa-esp32-elf-gcc.path=\{runtime.tools.xtensa-esp32-elf-gcc.path\}/g' | \
201201
sed 's/tools.xtensa-esp32s2-elf-gcc.path={runtime.platform.path}\/tools\/xtensa-esp32s2-elf/tools.xtensa-esp32s2-elf-gcc.path=\{runtime.tools.xtensa-esp32s2-elf-gcc.path\}/g' | \
202202
sed 's/tools.xtensa-esp32s3-elf-gcc.path={runtime.platform.path}\/tools\/xtensa-esp32s3-elf/tools.xtensa-esp32s3-elf-gcc.path=\{runtime.tools.xtensa-esp32s3-elf-gcc.path\}/g' | \
203+
sed 's/tools.xtensa-esp-elf-gdb.path={runtime.platform.path}\/tools\/xtensa-esp-elf-gdb/tools.xtensa-esp-elf-gdb.path=\{runtime.tools.xtensa-esp-elf-gdb.path\}/g' | \
203204
sed 's/tools.riscv32-esp-elf-gcc.path={runtime.platform.path}\/tools\/riscv32-esp-elf/tools.riscv32-esp-elf-gcc.path=\{runtime.tools.riscv32-esp-elf-gcc.path\}/g' | \
205+
sed 's/tools.riscv32-esp-elf-gdb.path={runtime.platform.path}\/tools\/riscv32-esp-elf-gdb/tools.riscv32-esp-elf-gdb.path=\{runtime.tools.riscv32-esp-elf-gdb.path\}/g' | \
204206
sed 's/tools.esptool_py.path={runtime.platform.path}\/tools\/esptool/tools.esptool_py.path=\{runtime.tools.esptool_py.path\}/g' | \
205207
sed 's/debug.server.openocd.path={runtime.platform.path}\/tools\/openocd-esp32\/bin\/openocd/debug.server.openocd.path=\{runtime.tools.openocd-esp32.path\}\/bin\/openocd/g' | \
206208
sed 's/debug.server.openocd.scripts_dir={runtime.platform.path}\/tools\/openocd-esp32\/share\/openocd\/scripts\//debug.server.openocd.scripts_dir=\{runtime.tools.openocd-esp32.path\}\/share\/openocd\/scripts\//g' | \

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
tools/xtensa-esp32-elf
22
tools/xtensa-esp32s2-elf
33
tools/xtensa-esp32s3-elf
4+
tools/xtensa-esp-elf-gdb
45
tools/riscv32-esp-elf
6+
tools/riscv32-esp-elf-gdb
57
tools/dist
68
tools/esptool
79
tools/esptool.exe

Diff for: package/package_esp32_index.template.json

+134
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,21 @@
5151
"name": "xtensa-esp32s3-elf-gcc",
5252
"version": "esp-12.2.0_20230208"
5353
},
54+
{
55+
"packager": "esp32",
56+
"name": "xtensa-esp-elf-gdb",
57+
"version": "12.1_20221002"
58+
},
5459
{
5560
"packager": "esp32",
5661
"name": "riscv32-esp-elf-gcc",
5762
"version": "esp-12.2.0_20230208"
5863
},
64+
{
65+
"packager": "esp32",
66+
"name": "riscv32-esp-elf-gdb",
67+
"version": "12.1_20221002"
68+
},
5969
{
6070
"packager": "esp32",
6171
"name": "openocd-esp32",
@@ -266,6 +276,68 @@
266276
}
267277
]
268278
},
279+
{
280+
"name": "xtensa-esp-elf-gdb",
281+
"version": "12.1_20221002",
282+
"systems": [
283+
{
284+
"host": "x86_64-pc-linux-gnu",
285+
"url": "https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/xtensa-esp-elf-gdb-12.1_20221002-x86_64-linux-gnu.tar.gz",
286+
"archiveFileName": "xtensa-esp-elf-gdb-12.1_20221002-x86_64-linux-gnu.tar.gz",
287+
"checksum": "SHA-256:d056f2435ef05cccadac5d8fcefa3efd8f8c456c3d853f5eba1edb501acfe4f7",
288+
"size": "32006939"
289+
},
290+
{
291+
"host": "aarch64-linux-gnu",
292+
"url": "https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/xtensa-esp-elf-gdb-12.1_20221002-aarch64-linux-gnu.tar.gz",
293+
"archiveFileName": "xtensa-esp-elf-gdb-12.1_20221002-aarch64-linux-gnu.tar.gz",
294+
"checksum": "SHA-256:7fc9674cc4f4c5e7bc94ca05bc5deaaa4c4bbcc972a9caee6fcd6a872c804c02",
295+
"size": "32227425"
296+
},
297+
{
298+
"host": "arm-linux-gnueabihf",
299+
"url": "https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/xtensa-esp-elf-gdb-12.1_20221002-arm-linux-gnueabi.tar.gz",
300+
"archiveFileName": "xtensa-esp-elf-gdb-12.1_20221002-arm-linux-gnueabi.tar.gz",
301+
"checksum": "SHA-256:68118ff36e9dd2284d92a7a529d0e2a8d20f6426036a0736fa1147935614ece2",
302+
"size": "29960020"
303+
},
304+
{
305+
"host": "i686-pc-linux-gnu",
306+
"url": "https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/xtensa-esp-elf-gdb-12.1_20221002-i586-linux-gnu.tar.gz",
307+
"archiveFileName": "xtensa-esp-elf-gdb-12.1_20221002-i586-linux-gnu.tar.gz",
308+
"checksum": "SHA-256:cf6cac8ed70726d390d30713d537754544872715e1b70a8a4a28b5dc616193b9",
309+
"size": "30877187"
310+
},
311+
{
312+
"host": "x86_64-apple-darwin",
313+
"url": "https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/xtensa-esp-elf-gdb-12.1_20221002-x86_64-apple-darwin14.tar.gz",
314+
"archiveFileName": "xtensa-esp-elf-gdb-12.1_20221002-x86_64-apple-darwin14.tar.gz",
315+
"checksum": "SHA-256:417fcf8d1b596b9481603d6987def1d6cfcebdb9739f53940887334a7de855fa",
316+
"size": "45941853"
317+
},
318+
{
319+
"host": "arm64-apple-darwin",
320+
"url": "https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/xtensa-esp-elf-gdb-12.1_20221002-aarch64-apple-darwin21.1.tar.gz",
321+
"archiveFileName": "xtensa-esp-elf-gdb-12.1_20221002-aarch64-apple-darwin21.1.tar.gz",
322+
"checksum": "SHA-256:95d6ed2311d6a72bf349e152d096aeeb151f9c5989bfa3120facb1c99e879196",
323+
"size": "27596410"
324+
},
325+
{
326+
"host": "i686-mingw32",
327+
"url": "https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/xtensa-esp-elf-gdb-12.1_20221002-i686-w64-mingw32.zip",
328+
"archiveFileName": "xtensa-esp-elf-gdb-12.1_20221002-i686-w64-mingw32.zip",
329+
"checksum": "SHA-256:642b6a135c38ff1d5e54ad2c29469b769f8e1b101dab363d06101b02284bb979",
330+
"size": "27387730"
331+
},
332+
{
333+
"host": "x86_64-mingw32",
334+
"url": "https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/xtensa-esp-elf-gdb-12.1_20221002-x86_64-w64-mingw32.zip",
335+
"archiveFileName": "xtensa-esp-elf-gdb-12.1_20221002-x86_64-w64-mingw32.zip",
336+
"checksum": "SHA-256:2d958570ff6aa69ed32cbb076cbaf303349a26b3301a7c4628be8d7ad39cf9f1",
337+
"size": "29561472"
338+
}
339+
]
340+
},
269341
{
270342
"name": "riscv32-esp-elf-gcc",
271343
"version": "esp-12.2.0_20230208",
@@ -328,6 +400,68 @@
328400
}
329401
]
330402
},
403+
{
404+
"name": "riscv32-esp-elf-gdb",
405+
"version": "12.1_20221002",
406+
"systems": [
407+
{
408+
"host": "x86_64-pc-linux-gnu",
409+
"url": "https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/riscv32-esp-elf-gdb-12.1_20221002-x86_64-linux-gnu.tar.gz",
410+
"archiveFileName": "riscv32-esp-elf-gdb-12.1_20221002-x86_64-linux-gnu.tar.gz",
411+
"checksum": "SHA-256:f0cf0821eaac7e8cf2c63b14f2b69d612f4f8c266b29d02d5547b7d7cbbd0e11",
412+
"size": "32035173"
413+
},
414+
{
415+
"host": "aarch64-linux-gnu",
416+
"url": "https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/riscv32-esp-elf-gdb-12.1_20221002-aarch64-linux-gnu.tar.gz",
417+
"archiveFileName": "riscv32-esp-elf-gdb-12.1_20221002-aarch64-linux-gnu.tar.gz",
418+
"checksum": "SHA-256:6812344dfb5c50a81d2fd8354463516f0aa5f582e8ab406cbaeca8722b45fa94",
419+
"size": "32362642"
420+
},
421+
{
422+
"host": "arm-linux-gnueabihf",
423+
"url": "https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/riscv32-esp-elf-gdb-12.1_20221002-arm-linux-gnueabi.tar.gz",
424+
"archiveFileName": "riscv32-esp-elf-gdb-12.1_20221002-arm-linux-gnueabi.tar.gz",
425+
"checksum": "SHA-256:b73042b8e1df5a3fc8008ec3cd000ef579f155d72a66c6ade1d48906d843e738",
426+
"size": "30580290"
427+
},
428+
{
429+
"host": "i686-pc-linux-gnu",
430+
"url": "https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/riscv32-esp-elf-gdb-12.1_20221002-i586-linux-gnu.tar.gz",
431+
"archiveFileName": "riscv32-esp-elf-gdb-12.1_20221002-i586-linux-gnu.tar.gz",
432+
"checksum": "SHA-256:3f07a1b8dc87127a1a6bec6fbace4f8daca44755356f0692e9a5d4c8c4bfd81d",
433+
"size": "31309798"
434+
},
435+
{
436+
"host": "x86_64-apple-darwin",
437+
"url": "https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/riscv32-esp-elf-gdb-12.1_20221002-x86_64-apple-darwin14.tar.gz",
438+
"archiveFileName": "riscv32-esp-elf-gdb-12.1_20221002-x86_64-apple-darwin14.tar.gz",
439+
"checksum": "SHA-256:bb139229f9a4998cab9cfb617d3ecb05b77cbfa9a3a59c54969035f1b4007487",
440+
"size": "46120661"
441+
},
442+
{
443+
"host": "arm64-apple-darwin",
444+
"url": "https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/riscv32-esp-elf-gdb-12.1_20221002-aarch64-apple-darwin21.1.tar.gz",
445+
"archiveFileName": "riscv32-esp-elf-gdb-12.1_20221002-aarch64-apple-darwin21.1.tar.gz",
446+
"checksum": "SHA-256:f6513b57f28245497f9c39a201f3f6444d4180e16b39765c629e01036286c0e6",
447+
"size": "27662484"
448+
},
449+
{
450+
"host": "i686-mingw32",
451+
"url": "https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/riscv32-esp-elf-gdb-12.1_20221002-i686-w64-mingw32.zip",
452+
"archiveFileName": "riscv32-esp-elf-gdb-12.1_20221002-i686-w64-mingw32.zip",
453+
"checksum": "SHA-256:8287fa2891e8d032e8283210048d653705791cda31504369418288d3e4753dd6",
454+
"size": "27839143"
455+
},
456+
{
457+
"host": "x86_64-mingw32",
458+
"url": "https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/riscv32-esp-elf-gdb-12.1_20221002-x86_64-w64-mingw32.zip",
459+
"archiveFileName": "riscv32-esp-elf-gdb-12.1_20221002-x86_64-w64-mingw32.zip",
460+
"checksum": "SHA-256:9debae1135df8f5868a9d945468f0480cdaab25f77ead6a55cc85142c4487abd",
461+
"size": "29404989"
462+
}
463+
]
464+
},
331465
{
332466
"name": "openocd-esp32",
333467
"version": "v0.11.0-esp32-20221026",

Diff for: platform.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ version=2.0.6
44
tools.xtensa-esp32-elf-gcc.path={runtime.platform.path}/tools/xtensa-esp32-elf
55
tools.xtensa-esp32s2-elf-gcc.path={runtime.platform.path}/tools/xtensa-esp32s2-elf
66
tools.xtensa-esp32s3-elf-gcc.path={runtime.platform.path}/tools/xtensa-esp32s3-elf
7+
tools.xtensa-esp-elf-gdb.path={runtime.platform.path}/tools/xtensa-esp-elf-gdb
78
tools.riscv32-esp-elf-gcc.path={runtime.platform.path}/tools/riscv32-esp-elf
9+
tools.riscv32-esp-elf-gdb.path={runtime.platform.path}/tools/riscv32-esp-elf-gdb
810

911
debug.server.openocd.path={runtime.platform.path}/tools/openocd-esp32/bin/openocd
1012
debug.server.openocd.scripts_dir={runtime.platform.path}/tools/openocd-esp32/share/openocd/scripts/
@@ -195,8 +197,8 @@ pluggable_monitor.required.serial=builtin:serial-monitor
195197
# - this is alpha and may be subject to change without notice
196198
debug.executable={build.path}/{build.project_name}.elf
197199
debug.toolchain=gcc
198-
debug.toolchain.path={compiler.path}
199-
debug.toolchain.prefix={compiler.prefix}
200+
debug.toolchain.path={tools.{build.tarch}-esp-elf-gdb.path}/bin/
201+
debug.toolchain.prefix={build.tarch}-{build.target}-elf
200202
debug.server=openocd
201203
debug.server.openocd.script=debug.cfg
202204

0 commit comments

Comments
 (0)