This is an archive of the discontinued LLVM Phabricator instance.

[lldb-vscode] Fix coredump load source mapping for first file
ClosedPublic

Authored by ted on Oct 29 2021, 10:09 AM.

Details

Summary

SetSourceMapFromArguments is called after the core is loaded. This means
that the source file for the crashing code won't have the source map applied.
Move the call to SetSourceMapFromArguments in request_attach to just after
the call to RunInitCommands, matching request_launch behavior.

Diff Detail

Event Timeline

ted requested review of this revision.Oct 29 2021, 10:09 AM
ted created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 29 2021, 10:09 AM
ted added a reviewer: wallace.
ted added a reviewer: labath.Oct 29 2021, 10:26 AM
clayborg accepted this revision.Oct 29 2021, 2:47 PM

This is how launch does it as well, so LGTM.

This revision is now accepted and ready to land.Oct 29 2021, 2:47 PM
wallace accepted this revision.Oct 29 2021, 10:14 PM

thanks!

This revision was automatically updated to reflect the committed changes.