@@ -21,8 +21,8 @@ class LinuxCoreTestCase(TestBase):
21
21
_x86_64_pid = 32259
22
22
_s390x_pid = 1045
23
23
_ppc64le_pid = 28147
24
- _riscv64_pid = 89328
25
- _riscv64_no_fpr_pid = 97
24
+ _riscv64_gpr_fpr_pid = 1089
25
+ _riscv64_gpr_only_pid = 97
26
26
27
27
_aarch64_regions = 4
28
28
_i386_regions = 4
@@ -62,17 +62,21 @@ def test_s390x(self):
62
62
self .do_test ("linux-s390x" , self ._s390x_pid , self ._s390x_regions , "a.out" )
63
63
64
64
@skipIfLLVMTargetMissing ("RISCV" )
65
- def test_riscv64 (self ):
65
+ def test_riscv64_gpr_fpr (self ):
66
66
"""Test that lldb can read the process information from an riscv64 linux core file."""
67
- self .do_test ("linux-riscv64" , self ._riscv64_pid , self ._riscv64_regions , "a.out" )
67
+ self .do_test (
68
+ "linux-riscv64.gpr_fpr" ,
69
+ self ._riscv64_gpr_fpr_pid ,
70
+ self ._riscv64_regions ,
71
+ "a.out" )
68
72
69
73
@skipIfLLVMTargetMissing ("RISCV" )
70
- def test_riscv64_no_fpr (self ):
74
+ def test_riscv64_gpr_only (self ):
71
75
"""Test that lldb can read the process information from an riscv64 linux core file
72
76
made for a RV64IMAC target, having no FP-registers."""
73
77
self .do_test (
74
- "linux-riscv64.no_fpr " ,
75
- self ._riscv64_no_fpr_pid ,
78
+ "linux-riscv64.gpr_only " ,
79
+ self ._riscv64_gpr_only_pid ,
76
80
self ._riscv64_regions ,
77
81
"a.out" ,
78
82
)
@@ -680,46 +684,47 @@ def test_arm_core(self):
680
684
self .expect ("register read --all" )
681
685
682
686
@skipIfLLVMTargetMissing ("RISCV" )
683
- def test_riscv64_regs (self ):
687
+ def test_riscv64_regs_gpr_fpr (self ):
684
688
# check basic registers using 64 bit RISC-V core file
685
689
target = self .dbg .CreateTarget (None )
686
690
self .assertTrue (target , VALID_TARGET )
687
- process = target .LoadCore ("linux-riscv64.core" )
691
+ process = target .LoadCore ("linux-riscv64.gpr_fpr. core" )
688
692
689
693
values = {}
690
- values ["pc" ] = "0x000000000001015e "
691
- values ["ra" ] = "0x000000000001018c "
692
- values ["sp" ] = "0x0000003fffd132a0 "
693
- values ["gp" ] = "0x0000002ae919af50 "
694
- values ["tp" ] = "0x0000003fdceae3e0 "
695
- values ["t0" ] = "0x0 "
696
- values ["t1" ] = "0x0000002ae9187b1c "
697
- values ["t2" ] = "0x0000000000000021 "
698
- values ["fp" ] = "0x0000003fffd132d0 "
699
- values ["s1" ] = "0x0000002ae919cd98 "
694
+ values ["pc" ] = "0x000000000001016e "
695
+ values ["ra" ] = "0x00000000000101a4 "
696
+ values ["sp" ] = "0x0000003fffc1d2d0 "
697
+ values ["gp" ] = "0x0000002ae6eccf50 "
698
+ values ["tp" ] = "0x0000003ff3cb5400 "
699
+ values ["t0" ] = "0x7f7f7f7fffffffff "
700
+ values ["t1" ] = "0x0000002ae6eb9b1c "
701
+ values ["t2" ] = "0xffffffffffffffff "
702
+ values ["fp" ] = "0x0000003fffc1d300 "
703
+ values ["s1" ] = "0x0000002ae6eced98 "
700
704
values ["a0" ] = "0x0"
701
705
values ["a1" ] = "0x0000000000010144"
702
- values ["a2" ] = "0x0000002ae919cdb0 "
703
- values ["a3" ] = "0x000000000000002f "
704
- values ["a4" ] = "0x000000000000002f "
706
+ values ["a2" ] = "0x0000002ae6ecedb0 "
707
+ values ["a3" ] = "0xafdbdbff81cf7f81 "
708
+ values ["a4" ] = "0x00000000000101e4 "
705
709
values ["a5" ] = "0x0"
706
- values ["a6" ] = "0x7efefefefefefeff "
710
+ values ["a6" ] = "0x2f5b5a40014e0001 "
707
711
values ["a7" ] = "0x00000000000000dd"
708
- values ["s2" ] = "0x0000002ae9196860 "
709
- values ["s3" ] = "0x0000002ae919cdb0 "
710
- values ["s4" ] = "0x0000003fffc63be8 "
711
- values ["s5" ] = "0x0000002ae919cb78 "
712
- values ["s6" ] = "0x0000002ae9196860 "
713
- values ["s7" ] = "0x0000002ae9196860 "
712
+ values ["s2" ] = "0x0000002ae6ec8860 "
713
+ values ["s3" ] = "0x0000002ae6ecedb0 "
714
+ values ["s4" ] = "0x0000003fff886c18 "
715
+ values ["s5" ] = "0x0000002ae6eceb78 "
716
+ values ["s6" ] = "0x0000002ae6ec8860 "
717
+ values ["s7" ] = "0x0000002ae6ec8860 "
714
718
values ["s8" ] = "0x0"
715
719
values ["s9" ] = "0x000000000000000f"
716
- values ["s10" ] = "0x0000002ae919a8d0 "
720
+ values ["s10" ] = "0x0000002ae6ecc8d0 "
717
721
values ["s11" ] = "0x0000000000000008"
718
- values ["t3" ] = "0x0000003fdce07df4 "
722
+ values ["t3" ] = "0x0000003ff3be3728 "
719
723
values ["t4" ] = "0x0"
720
- values ["t5" ] = "0x0000000000000020 "
721
- values ["t6" ] = "0x0000002ae919f1b0 "
724
+ values ["t5" ] = "0x0000000000000002 "
725
+ values ["t6" ] = "0x0000002ae6ed08b9 "
722
726
values ["zero" ] = "0x0"
727
+ values ["fa5" ] = "0xffffffff423c0000"
723
728
values ["fcsr" ] = "0x00000000"
724
729
725
730
fpr_names = {
@@ -740,7 +745,6 @@ def test_riscv64_regs(self):
740
745
"fa2" ,
741
746
"fa3" ,
742
747
"fa4" ,
743
- "fa5" ,
744
748
"fa6" ,
745
749
"fa7" ,
746
750
"fs0" ,
@@ -773,11 +777,11 @@ def test_riscv64_regs(self):
773
777
self .expect ("register read --all" )
774
778
775
779
@skipIfLLVMTargetMissing ("RISCV" )
776
- def test_riscv64_no_fpr_regs (self ):
780
+ def test_riscv64_regs_gpr_only (self ):
777
781
# check registers using 64 bit RISC-V core file containing GP-registers only
778
782
target = self .dbg .CreateTarget (None )
779
783
self .assertTrue (target , VALID_TARGET )
780
- process = target .LoadCore ("linux-riscv64.no_fpr .core" )
784
+ process = target .LoadCore ("linux-riscv64.gpr_only .core" )
781
785
782
786
values = {}
783
787
values ["pc" ] = "0x0000000000010164"
0 commit comments