This is an archive of the discontinued LLVM Phabricator instance.

[SymbolFilePDB] Add support for resolving variable symbols
ClosedPublic

Authored by asmith on Apr 3 2018, 12:33 PM.

Details

Summary

Implement FindGlobalVariables and ParseVariableContext methods.

Compile unit information is necessary for resolving variable context, however some PDB symbols do not have this information. For now an empty DWARFExpression is used to construct a lldb::Variable instance with the limitation that using lldb to lookup the value of a global or local variable is not available.

This commit may slow down lit/SymbolFile/PDB/compilands.test since the test includes MS specific modules that spend more time parsing variables.

Diff Detail

Repository
rL LLVM

Event Timeline

asmith created this revision.Apr 3 2018, 12:33 PM
This revision was not accepted when it landed; it landed in state Needs Review.May 22 2018, 6:56 PM
This revision was automatically updated to reflect the committed changes.