Project

General

Profile

Actions

Feature #17615

closed

Dump machine registers on RISC-V Linux

Added by xtkoba (Tee KOBAYASHI) 2 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
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 #1

Updated by mame (Yusuke Endoh) 2 months ago

  • Status changed from Open to Closed

Applied in changeset git|66394aec9813e52751e2b099ee6a4814ace494f8.


vm_dump.c: Dump machine registers on RISC-V Linux

Fixes [Bug #17615]

Co-Authored-By: xtkoba (Tee KOBAYASHI) xtkoba+ruby@gmail.com

Updated by mame (Yusuke Endoh) 2 months ago

Merged, thank you!

Actions

Also available in: Atom PDF