From 974f34531680665b6d454ea5853631f7b9d93ed0 Mon Sep 17 00:00:00 2001 From: Martin Vychodil Date: Wed, 30 Dec 2020 16:40:48 +0100 Subject: [PATCH] * fixed generation of .gdbinit file (esp32c3 dbg issue) --- tools/idf_py_actions/debug_ext.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/idf_py_actions/debug_ext.py b/tools/idf_py_actions/debug_ext.py index 5b89650a22..4d882baaee 100644 --- a/tools/idf_py_actions/debug_ext.py +++ b/tools/idf_py_actions/debug_ext.py @@ -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')