This is an archive of the discontinued LLVM Phabricator instance.

[lldb-vscode] Adding support for displaying backtraces.
ClosedPublic

Authored by ashgti on Jul 27 2023, 10:56 AM.

Details

Summary

On Apple platforms when debugging with libBacktraceRecording.dylib backtraces are stored as part of the thread stack. This change includes support for displaying the back traces when they are present in the stack trace.

To use this on macOS a binary needs to be run with the following environment variables configured:

DYLD_LIBRARY_PATH=/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/usr/lib/libBacktraceRecording.dylib

Diff Detail

Event Timeline

ashgti created this revision.Jul 27 2023, 10:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 27 2023, 10:56 AM
ashgti requested review of this revision.Jul 27 2023, 10:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 27 2023, 10:56 AM
ashgti edited the summary of this revision. (Show Details)Jul 27 2023, 2:55 PM
ashgti added a reviewer: wallace.
ashgti edited the summary of this revision. (Show Details)Jul 27 2023, 3:03 PM
ashgti updated this revision to Diff 544946.Jul 27 2023, 3:10 PM
ashgti edited the summary of this revision. (Show Details)

Applying clang-format.

wallace accepted this revision.Jul 28 2023, 7:59 AM

fancy

This revision is now accepted and ready to land.Jul 28 2023, 7:59 AM
This revision was automatically updated to reflect the committed changes.