This is an archive of the discontinued LLVM Phabricator instance.

[LLDB][NativePDB] Add local variables with no location info.
ClosedPublic

Authored by zequanwu on Sep 9 2022, 5:48 PM.

Details

Summary

If we don't add local variables with no location info, when trying to print it,
lldb won't find it in the its parent DeclContext, which makes lldb to spend more
time to search all the way up in DeclContext hierarchy until found same name
variable or failed. Dwarf plugin also add local vars even if they don't have
location info.

Diff Detail

Event Timeline

zequanwu created this revision.Sep 9 2022, 5:48 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 9 2022, 5:48 PM
zequanwu requested review of this revision.Sep 9 2022, 5:48 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 9 2022, 5:48 PM
labath accepted this revision.Sep 12 2022, 10:28 AM
This revision is now accepted and ready to land.Sep 12 2022, 10:28 AM