[Lldb-commits] [lldb] [LLDB] Add a child property to compliment the existing parent property (PR #168619)
Jacob Lalonde via lldb-commits
lldb-commits at lists.llvm.org
Thu Nov 20 09:58:20 PST 2025
https://github.com/Jlalond updated https://github.com/llvm/llvm-project/pull/168619
>From de994b5f05ac72e2b2f71aede224f842bc722820 Mon Sep 17 00:00:00 2001
From: Jacob Lalonde <jalalonde at fb.com>
Date: Tue, 18 Nov 2025 14:23:18 -0800
Subject: [PATCH] Add a child property to compliment the existing parent
property
---
lldb/bindings/interface/SBFrameExtensions.i | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lldb/bindings/interface/SBFrameExtensions.i b/lldb/bindings/interface/SBFrameExtensions.i
index 38d03abaee8f0..0c79b98b290f2 100644
--- a/lldb/bindings/interface/SBFrameExtensions.i
+++ b/lldb/bindings/interface/SBFrameExtensions.i
@@ -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)
@@ -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
}
More information about the lldb-commits
mailing list