[Lldb-commits] [lldb] [lldb] Introduce ScriptedFrameProvider for real threads (PR #161870)

via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 10 14:36:11 PDT 2025


jimingham wrote:

BTW, I used the term `generator` when I probably shouldn't because that's more a term of art.  I don't think "real generating iterators" are needed here, because we're really not building lists, we're always only answering the question "Give me the stack frame at index 5 or tell me it doesn't exist".  Internally, if the StackFrameList was last asked about frame index 3, it knows that to provide 5 it has to start with 3 and generate 4 and then 5.  But I can't see why we need fancier machinery than "the transmogrifier keeps track of how many frames it has generated so far, and does what it needs to to fill the gap between what it was last asked to fetch and what it was asked to fetch this time round.

https://github.com/llvm/llvm-project/pull/161870


More information about the lldb-commits mailing list