From: mame@... Date: 2021-02-09T19:41:26+00:00 Subject: [ruby-core:102427] [Ruby master Feature#17615] Dump machine registers on RISC-V Linux Issue #17615 has been updated by mame (Yusuke Endoh). Merged, thank you! ---------------------------------------- Feature #17615: Dump machine registers on RISC-V Linux https://bugs.ruby-lang.org/issues/17615#change-90298 * Author: xtkoba (Tee KOBAYASHI) * Status: Closed * Priority: Normal ---------------------------------------- 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) -- https://bugs.ruby-lang.org/ Unsubscribe: