This repository was archived by the owner on May 21, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
packages/Python/lldbsuite/test/python_api/frame Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -80,9 +80,12 @@ def test_get_arg_vals_for_call_stack(self):
80
80
gpr_reg_set = lldbutil .get_GPRs (frame )
81
81
pc_value = gpr_reg_set .GetChildMemberWithName ("pc" )
82
82
self .assertTrue (pc_value , "We should have a valid PC." )
83
- pc_value_str = pc_value .GetValue ()
84
- self .assertTrue (pc_value_str , "We should have a valid PC string." )
85
- self .assertTrue (int (pc_value_str , 0 ) == frame .GetPC (), "PC gotten as a value should equal frame's GetPC" )
83
+ pc_value_int = int (pc_value .GetValue (), 0 )
84
+ # Make sure on arm targets we dont mismatch PC value on the basis of thumb bit.
85
+ # Frame PC will not have thumb bit set in case of a thumb instruction as PC.
86
+ if self .getArchitecture () in ['arm' ]:
87
+ pc_value_int &= ~ 1
88
+ self .assertTrue (pc_value_int == frame .GetPC (), "PC gotten as a value should equal frame's GetPC" )
86
89
sp_value = gpr_reg_set .GetChildMemberWithName ("sp" )
87
90
self .assertTrue (sp_value , "We should have a valid Stack Pointer." )
88
91
self .assertTrue (int (sp_value .GetValue (), 0 ) == frame .GetSP (), "SP gotten as a value should equal frame's GetSP" )
You can’t perform that action at this time.
0 commit comments