mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 09:09:10 -04:00
fix(esp_rom): windows: use posix-path generation for gdbinit files
This commit is contained in:
parent
e3ceabfa1b
commit
79bfde31ec
@ -31,6 +31,9 @@ def generate_gdbinit_rom_add_symbols(target: str) -> str:
|
||||
if not rom_elfs_dir:
|
||||
raise EnvironmentError(
|
||||
'ESP_ROM_ELF_DIR environment variable is not defined. Please try to run IDF "install" and "export" scripts.')
|
||||
if os.name == 'nt':
|
||||
# convert to posix-path for windows
|
||||
rom_elfs_dir = rom_elfs_dir.replace('\\', '/')
|
||||
with open(ROMS_JSON, 'r') as f:
|
||||
roms = json.load(f)
|
||||
if target not in roms:
|
||||
|
Loading…
x
Reference in New Issue
Block a user