From 0e3c3abf736d3bb4de607251164a10514f49acdb Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 19 Mar 2020 15:16:55 +0200 Subject: [PATCH] GDB init commands for Renode simulation framework // Issue #3401 --- platformio/commands/debug/initcfgs.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/platformio/commands/debug/initcfgs.py b/platformio/commands/debug/initcfgs.py index d39629d5..a392b9eb 100644 --- a/platformio/commands/debug/initcfgs.py +++ b/platformio/commands/debug/initcfgs.py @@ -124,12 +124,29 @@ pio_reset_halt_target $INIT_BREAK """ +GDB_RENODE_INIT_CONFIG = """ +define pio_reset_halt_target + monitor reset +end + +define pio_reset_run_target + monitor reset +end + +target extended-remote $DEBUG_PORT +$LOAD_CMDS +pio_reset_halt_target +$INIT_BREAK +monitor start +""" + TOOL_TO_CONFIG = { "jlink": GDB_JLINK_INIT_CONFIG, "mspdebug": GDB_MSPDEBUG_INIT_CONFIG, "qemu": GDB_QEMU_INIT_CONFIG, "blackmagic": GDB_BLACKMAGIC_INIT_CONFIG, + "renode": GDB_RENODE_INIT_CONFIG, }