crosstool-NG icon indicating copy to clipboard operation
crosstool-NG copied to clipboard

esp-12.2.0_20230208 missing gdb

Open gudvinr opened this issue 2 years ago • 3 comments

Toolchain release esp-12.2.0_20230208 is missing esp-12.2.0_20230208

gudvinr avatar Jun 26 '23 17:06 gudvinr

We are now releasing GDB separately from the rest of the toolchain, to allow more frequent updates. You can find GDB releases here: https://github.com/espressif/binutils-gdb/releases

igrr avatar Jun 26 '23 20:06 igrr

In 11.2 and earlier GDB was included in toolchain package and included in toolchain-xtensa-esp32 platformio package too. I assume it's the same for esp32s2, esp32s3, etc.

But those packages now don't have gdb since 12.2 and there are no separate packages for gdb (at least not in the pio registry).

gudvinr avatar Jun 26 '23 21:06 gudvinr

Hi,

I've faced the same issue, I was a bit surprised because crosstool-ng already builds binutils-gdb. Is there a way to make it build gdb as well? I've tried building espressif's fork of binutils-gdb with --target xtensa-esp32s3-elf as option but it builds more than gdb and replaced various toolchain files like -as, -ld and broke my toolchain. Trying to build a project for esp32s3 ended up with an error like "toolchain is little-endian but target is big-endian" which obviously looks wrong.

I know that building from source is not the official way of doing ESP development but sometimes may be needed for alternative platforms/libc's (e.g. musl on aarch64).

Can we can some directions on how to build just the gdb part for a single target in binutils-gdb fork?

Thanks.

markand avatar Feb 09 '24 08:02 markand

@markand , sorry for the long delay. I hope the comment https://github.com/espressif/crosstool-NG/issues/50#issuecomment-1942202443 can help you understand the changes after 12.2 release.

To build gdb you can refer to https://github.com/espressif/binutils-gdb repo and it's build script

Lapshin avatar Jun 10 '24 06:06 Lapshin