crash icon indicating copy to clipboard operation
crash copied to clipboard

riscv64 support?

Open RobertBerger opened this issue 3 years ago • 6 comments

Hi, Just wanted to check what is the status with crash and riscv64.

RobertBerger avatar Jun 30 '21 10:06 RobertBerger

No, the current crash does not support riscv64.

Probably the gdb-7.6 that crash contains also does not support it in the first place. We have been working on rebasing gdb to 10.1 [1], it might be needed.

[1] https://listman.redhat.com/archives/crash-utility/2021-March/msg00078.html

k-hagio avatar Jul 05 '21 02:07 k-hagio

Upgrading gdb is insufficient. configure.c has also to be adjusted. Please, create a branch to allow collaboration on the update.

xypron avatar Jul 09 '21 10:07 xypron

Is there a place form where the original patch email files can be downloaded?

xypron avatar Jul 09 '21 10:07 xypron

Here is Alexey's branch for gdb 10.2: https://github.com/YustasSwamp/crash/tree/crash-gdb10.2-devel-temp

xypron avatar Jul 09 '21 11:07 xypron

For RISC-V support at least the following is needed:

  • switching to current GDB
  • add RISC-V defintions to configure.c (like https://github.com/xypron/crash/commit/2391175c7936a3d873b7b7f1b6c6cae2f4c166b8)
  • add RISC-V definitions to defs.h
  • create riscv64.c, unwind_riscv64.c

xypron avatar Jul 10 '21 10:07 xypron

just give an update for this, there are working patches[1] for RISC-V support, which is kind of usable..

[1] https://lore.kernel.org/r/[email protected]

dlan17 avatar Sep 07 '22 06:09 dlan17