IDF 6.0.1 weird value in build/gdbinit/symbols

esp32.damiano
Posts: 34
Joined: Sat Aug 23, 2025 6:09 am

IDF 6.0.1 weird value in build/gdbinit/symbols

Postby esp32.damiano » Mon Jun 08, 2026 2:03 pm

What happens is that a slash is missing

Code: Select all

    add-symbol-file /home/damiano/.espressif/tools/esp-rom-elfs/20241011esp32c6_rev0_rom.elf
should be

Code: Select all

    add-symbol-file /home/damiano/.espressif/tools/esp-rom-elfs/20241011/esp32c6_rev0_rom.elf
anyone has a hint on how to fix the bad joining ?
adjusting it at every compile is ..... a PAIN

Thank you

MicroController
Posts: 2661
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: IDF 6.0.1 weird value in build/gdbinit/symbols

Postby MicroController » Mon Jun 08, 2026 2:20 pm

https://github.com/espressif/esp-idf/issues/18418

Quick hack would be to insert a "\" in https://github.com/espressif/esp-idf/bl ... nit.py#L52, or

Code: Select all

rom_file = os.path.join(rom_elfs_dir, f'{target}_rev{k["rev"]}_rom.elf')
r.append(indent(f'add-symbol-file {rom_file}', indent_str + base_ident))

esp32.damiano
Posts: 34
Joined: Sat Aug 23, 2025 6:09 am

Re: IDF 6.0.1 weird value in build/gdbinit/symbols

Postby esp32.damiano » Mon Jun 08, 2026 6:52 pm

THANKS !

I will take a try tomorrow, the function should be generate_gdbinit_rom_add_symbols
(it is pretty late now)

thanks again

esp32.damiano
Posts: 34
Joined: Sat Aug 23, 2025 6:09 am

Re: IDF 6.0.1 weird value in build/gdbinit/symbols

Postby esp32.damiano » Mon Jun 08, 2026 7:02 pm

could not wait, line 52 of gen_gdbinit.py becomes

Code: Select all

        r.append(indent(f'add-symbol-file {rom_elfs_dir}/{rom_file}', indent_str + base_ident))
the missing slash is inserted

Who is online

Users browsing this forum: Bing [Bot], coccocbot, Qwantbot and 4 guests