[Lldb-commits] [lldb] [lldb] Extend frame recognizers to hide frames from backtraces (PR #104523)
Jason Molenda via lldb-commits
lldb-commits at lists.llvm.org
Thu Aug 15 17:39:19 PDT 2024
jasonmolenda wrote:
Ah sorry was still writing and posted by accident.
For stepping we have a user exposed setting `target.process.thread.step-avoid-regexp` which lldb uses to step over C++ inlined methods in your code, and allow the user to extend this to add it for their own libraries. I know these frame recognizers are coming from the Language plugins so it's not as simple as a single master regex list like `target.process.thread.step-avoid-regexp` that a user can add on to. But i do wonder if there should be a way for a user to provide regexes that should behave this way too.
I don't know about printing the "Some frames were omitted" message by default when this takes place. Then again, I guess with the recognizers we're talking about here with C++ it will not be common, and so the one backtrace during your session where there's std::function stuff on the stack and it's omitted, it wouldn't be noisy. I don't know how frequent you think these recognizers might match for Swift code.
https://github.com/llvm/llvm-project/pull/104523
More information about the lldb-commits
mailing list