Project

General

Profile

Actions

Feature #17615

closed

Dump machine registers on RISC-V Linux

Added by xtkoba (Tee KOBAYASHI) about 3 years ago. Updated about 3 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:102423]

Description

Dump every integer register that is either callee-saved or used for parameter passing on RISC-V Linux. An example output:

-- Machine register context ------------------------------------------------
  sp: 0x0000004001801550  s0: 0x00000040018015b0  s1: 0x0000004000004bb0
  a0: 0x0000000000000000  a1: 0x000000000000000b  a2: 0xffffffffffffffff
  a3: 0x000000000000000b  a4: 0x000000000000000b  a5: 0x0000000000003934
  a6: 0x0000004001ac2ebe  a7: 0x0000000000000081  s2: 0x00000040022a8058
  s3: 0x0000000000000000  s4: 0x0000000000000000  s5: 0x0000000000000000
  s6: 0x0000000000000000  s7: 0x0000000000000000  s8: 0x0000000000000000
  s9: 0x0000000000000000 s10: 0x0000000000000000 s11: 0x0000000000000000

A patch is attached for this purpose. Please consider merging it.


Files

ruby-riscv-dump_machine_register.patch (2.2 KB) ruby-riscv-dump_machine_register.patch xtkoba (Tee KOBAYASHI), 02/09/2021 09:29 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0