Skip to content

Commit

Permalink
Fix disassembly output in GDB with extended compressed instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgerhardt committed Nov 15, 2024
1 parent 3e0240f commit 36c31b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 36c31b4

Please sign in to comment.