From 36c31b46cad11189e88fd8c6e4908fe5064b5d39 Mon Sep 17 00:00:00 2001 From: Maximilian Gerhardt Date: Sat, 16 Nov 2024 00:26:48 +0100 Subject: [PATCH] Fix disassembly output in GDB with extended compressed instructions --- platform.py | 2 ++ 1 file changed, 2 insertions(+) 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",