forked from crash-utility/crash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LoongArch64: Add 'help -r' command support
Add support form printing out the registers from the dump file. We don't take the registers directly from the ELF notes but instead use the version we've saved into the machine_specific structure. If we don't do this, we'd get misleading output when the number of ELF notes don't match the number of online CPUs. E.g. Without this patch: crash> help -r CPU 0: R0: 0000000000000000 R1: 900000000026cd2c R2: 90000000013e8000 R3: 90000000013ebdf0 R4: 9000000005923878 R5: 0000000000000000 R6: 0000000000000001 R7: 7fffffffffffffff R8: 0000000000000003 R9: 9000000094f644a8 R10: ffffffffa9059289 R11: 0000000001167617 R12: 0000000000000000 R13: 0000000000000002 R14: 0000000000168d9a R15: 90000000017fd358 R16: 90000000013fe000 R17: 000001383a11ae73 R18: fffffffffffffff7 R19: 0000000000000000 R20: 0000000000000954 R21: 90000000002c65cc R22: 0000000000000000 R23: 90000000014168d0 R24: 0000000000000000 R25: 0000000000000004 R26: 90000000014169a8 R27: 0000000000000004 R28: 900000000150f596 R29: 9000000001257f18 R30: 0000000000000000 R31: 0000000000000000 CSR epc : 9000000005923878 CSR badv: 9000000000221620 CSR crmd: 000000b0 CSR prmd: 90000000014169a8 CSR ecfg: 00000000 CSR estat: 90000000014168d0 CSR eneu: 00000004 ... Co-developed-by: Youling Tang <[email protected]> Signed-off-by: Youling Tang <[email protected]> Signed-off-by: Ming Wang <[email protected]>
- Loading branch information
Showing
3 changed files
with
76 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters