diff --git a/platform.py b/platform.py index 227de6a..375f404 100644 --- a/platform.py +++ b/platform.py @@ -157,6 +157,8 @@ def _add_default_debug_tools(self, board): init_cmds = [ "set mem inaccessible-by-default off", "set arch riscv:rv32", + # compatible with only WCH's gdb version, decodes code generated with "xw" correctly + "set disassembler-options xw", "set remotetimeout unlimited", "target extended-remote $DEBUG_PORT", "$INIT_BREAK",