mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 03:07:21 +02:00
Merge branch 'bugfix/esp32c3_gdbinit_v4.3' into 'release/v4.3'
.gdbinit generation fix (ESP32C3) (v4.3) See merge request espressif/esp-idf!12750
This commit is contained in:
@ -98,10 +98,10 @@ def action_extensions(base_actions, project_path):
|
|||||||
|
|
||||||
def create_local_gdbinit(gdbinit, elf_file):
|
def create_local_gdbinit(gdbinit, elf_file):
|
||||||
with open(gdbinit, 'w') as f:
|
with open(gdbinit, 'w') as f:
|
||||||
f.write('target remote :3333\n')
|
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
elf_file = elf_file.replace('\\','\\\\')
|
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('mon reset halt\n')
|
||||||
f.write('flushregs\n')
|
f.write('flushregs\n')
|
||||||
f.write('thb app_main\n')
|
f.write('thb app_main\n')
|
||||||
|
Reference in New Issue
Block a user