Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lldb] Extend frame recognizers to hide frames from backtraces #104523

Merged
merged 1 commit into from
Aug 20, 2024

Commits on Aug 20, 2024

  1. [lldb] Extend frame recognizers to hide frames from backtraces

    Compilers and language runtimes often use helper functions that are
    fundamentally uninteresting when debugging anything but the
    compiler/runtime itself. This patch introduces a user-extensible
    mechanism that allows for these frames to be hidden from backtraces
    and automatically skipped over when navigating the stack with `up` and
    `down`, and when stepping out of the current frame.
    
    This does not affect the numbering of frames, so `f <N>` will still
    provide access to the hidden frames. The `bt` output will also print a
    hint that frames have been hidden.
    
    My primary motivation for this feature is to hide thunks in the Swift
    programming language, but I'm including an example recognizer for
    `std::function::operator()` that I wished for myself many times while
    debugging LLDB.
    
    The functionality is user-extensible via Python recognizers and
    exposed through the SBAPI via SBFrame::IsHidden().
    
    rdar://126629381
    adrian-prantl committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    a27308d View commit details
    Browse the repository at this point in the history