File tree Expand file tree Collapse file tree 2 files changed +1
-23
lines changed
test/API/python_api/frame Expand file tree Collapse file tree 2 files changed +1
-23
lines changed Original file line number Diff line number Diff line change @@ -44,16 +44,6 @@ STRING_EXTENSION_OUTSIDE(SBFrame)
44
44
def __init__ (self, regs):
45
45
self.regs = regs
46
46
47
- def __iter__ (self):
48
- return self.get_registers ()
49
-
50
- def get_registers (self):
51
- for i in range (0 ,len (self.regs )):
52
- rs = self.regs [i]
53
- for j in range (0 ,rs.num_children ):
54
- reg = rs.GetChildAtIndex (j)
55
- yield reg
56
-
57
47
def __getitem__ (self, key):
58
48
if type (key) is str:
59
49
for i in range (0 ,len (self.regs )):
@@ -62,7 +52,7 @@ STRING_EXTENSION_OUTSIDE(SBFrame)
62
52
reg = rs.GetChildAtIndex (j)
63
53
if reg.name == key: return reg
64
54
else :
65
- return SBValue ()
55
+ return lldb. SBValue ()
66
56
67
57
return registers_access (self.registers )
68
58
Original file line number Diff line number Diff line change @@ -73,19 +73,7 @@ def test_get_arg_vals_for_call_stack(self):
73
73
gpr_reg_set = lldbutil .get_GPRs (frame )
74
74
pc_value = gpr_reg_set .GetChildMemberWithName ("pc" )
75
75
self .assertTrue (pc_value , "We should have a valid PC." )
76
- # Make sure we can also get this from the "register" property:
77
- iterator_pc_value = 0
78
- found_pc = False
79
- for reg in frame .register :
80
- if reg .name == "pc" :
81
- found_pc = True
82
- iterator_pc_value = int (reg .GetValue (), 0 )
83
- break
84
-
85
76
pc_value_int = int (pc_value .GetValue (), 0 )
86
- self .assertTrue (found_pc , "Found the PC value in the register list" )
87
- self .assertEqual (iterator_pc_value , pc_value_int , "The methods of finding pc match" )
88
-
89
77
# Make sure on arm targets we dont mismatch PC value on the basis of thumb bit.
90
78
# Frame PC will not have thumb bit set in case of a thumb
91
79
# instruction as PC.
You can’t perform that action at this time.
0 commit comments