[Lldb-commits] [lldb] Reapply "Fix error in unrecognized register name handling for "SBFram…e.register"" (#88468)" (PR #88535)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Fri Apr 12 10:45:59 PDT 2024
================
@@ -44,6 +44,16 @@ STRING_EXTENSION_OUTSIDE(SBFrame)
def __init__(self, regs):
self.regs = regs
+ def __iter__(self):
+ return self.get_registers()
+
+ def get_registers(self):
+ for i in range(0,len(self.regs)):
+ rs = self.regs[i]
+ for j in range (0,rs.num_children):
----------------
bulbazord wrote:
Fair, explicit is good. I meant it as a suggestion originally.
https://github.com/llvm/llvm-project/pull/88535
More information about the lldb-commits
mailing list