aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectCommands.cpp
diff options
context:
space:
mode:
authorjimingham <jingham@apple.com>2024-02-13 11:06:32 -0800
committerGitHub <noreply@github.com>2024-02-13 11:06:32 -0800
commita04c6366b156f508cdf84a32ef4484b53a6dabee (patch)
tree3b417d6c469f0792304b456e54541d57bbcaa3c4 /lldb/source/Commands/CommandObjectCommands.cpp
parentfc0e9c8315564288f9079a633892abadace534cf (diff)
downloadllvm-a04c6366b156f508cdf84a32ef4484b53a6dabee.zip
llvm-a04c6366b156f508cdf84a32ef4484b53a6dabee.tar.gz
llvm-a04c6366b156f508cdf84a32ef4484b53a6dabee.tar.bz2
Don't count all the frames just to skip the current inlined ones. (#80918)
The algorithm to find the DW_OP_entry_value requires you to find the nearest non-inlined frame. It did that by counting the number of stack frames so that it could use that as a loop stopper. That is unnecessary and inefficient. Unnecessary because GetFrameAtIndex will return a null frame when you step past the oldest frame, so you already have the "got to the end" signal without counting all the stack frames. And counting all the stack frames can be expensive.
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
0 files changed, 0 insertions, 0 deletions