Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lldb/bindings/interface/SBFrameExtensions.i
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ STRING_EXTENSION_OUTSIDE(SBFrame)
else:
return SBFrame()

def get_child_frame(self):
child_idx = self.idx - 1
if child_idx >= 0:
return self.thread.frame[child_idx]
else:
return SBFrame()

def get_arguments(self):
return self.GetVariables(True,False,False,False)

Expand Down Expand Up @@ -92,6 +99,7 @@ STRING_EXTENSION_OUTSIDE(SBFrame)
register = property(get_registers_access, None, doc='''A read only property that returns an helper object providing a flattened indexable view of the CPU registers for this stack frame.''')
reg = property(get_registers_access, None, doc='''A read only property that returns an helper object providing a flattened indexable view of the CPU registers for this stack frame''')
parent = property(get_parent_frame, None, doc='''A read only property that returns the parent (caller) frame of the current frame.''')
child = property(get_child_frame, None, doc='''A read only property that returns the child (callee) frame of the current frame.''')
%}
#endif
}
Loading