tools: fix idf.py gdb memory access before remote target is connected
Currently loading of esp32s3 ROM ELF symbols fails with
"Cannot access memory at address 0x3ff194ad". Let's perform
add-symbol-file after connection to the target.
@@ -247,8 +247,6 @@ def action_extensions(base_actions: Dict, project_path: str) -> Dict:
print(f'Warning: {msg_body}')
return f'# {msg_body}'
r = ['', f'# Load {target} ROM ELF symbols']
- is_one_revision = len(roms[target]) == 1
- if not is_one_revision:
r.append('define target hookpost-remote')
r.append('set confirm off')
# Since GDB does not have 'else if' statement than we use nested 'if..else' instead.
@@ -273,7 +271,6 @@ def action_extensions(base_actions: Dict, project_path: str) -> Dict:
for i in range(len(roms[target]), 0, -1):
r.append(indent('end', base_ident * i))
r.append('set confirm on')
- if not is_one_revision:
r.append('end')
r.append('')
return os.linesep.join(r)
