diff --git a/platformio/commands/debug/initcfgs.py b/platformio/commands/debug/initcfgs.py index 55e7c34f..bb319270 100644 --- a/platformio/commands/debug/initcfgs.py +++ b/platformio/commands/debug/initcfgs.py @@ -141,6 +141,17 @@ $INIT_BREAK monitor start """ +GDB_SIMAVR_INIT_CONFIG = """ +define pio_reset_halt_target +end + +define pio_reset_run_target +end + +target extended-remote $DEBUG_PORT +$INIT_BREAK +$LOAD_CMDS +""" TOOL_TO_CONFIG = { "jlink": GDB_JLINK_INIT_CONFIG, @@ -148,6 +159,7 @@ TOOL_TO_CONFIG = { "qemu": GDB_QEMU_INIT_CONFIG, "blackmagic": GDB_BLACKMAGIC_INIT_CONFIG, "renode": GDB_RENODE_INIT_CONFIG, + "simavr": GDB_SIMAVR_INIT_CONFIG, }