Merge branch 'bugfix/esp32c3_gdbinit' into 'master'

.gdbinit generation fix (ESP32C3)

See merge request espressif/esp-idf!11842
pull/6828/head
Ivan Grokhotkov 2021-03-15 15:09:11 +00:00
commit 28d8eb0a14
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -98,10 +98,10 @@ def action_extensions(base_actions, project_path):
def create_local_gdbinit(gdbinit, elf_file):
with open(gdbinit, 'w') as f:
f.write('target remote :3333\n')
if os.name == 'nt':
elf_file = elf_file.replace('\\','\\\\')
f.write('symbol-file {}\n'.format(elf_file))
f.write('file {}\n'.format(elf_file))
f.write('target remote :3333\n')
f.write('mon reset halt\n')
f.write('flushregs\n')
f.write('thb app_main\n')