Previously, I was assuming that S_DEFRANGE_SUBFIELD_REGISTERs are always in the
increasing order of offset_in_parent until I saw a counter example.
Using std::map so that they are sorted by offset_in_parent.
Paths
| Differential D124061
[LLDB][NativePDB] Fix the case when S_DEFRANGE_SUBFIELD_REGISTERs are out of order. ClosedPublic Authored by zequanwu on Apr 19 2022, 8:15 PM.
Details Summary Previously, I was assuming that S_DEFRANGE_SUBFIELD_REGISTERs are always in the Using std::map so that they are sorted by offset_in_parent.
Diff Detail
Event TimelineComment Actions seems reasonable
This revision is now accepted and ready to land.Apr 20 2022, 2:13 AM Closed by commit rG2fa2734690ff: [LLDB][NativePDB] Fix the case when S_DEFRANGE_SUBFIELD_REGISTERs are out of… (authored by zequanwu). · Explain WhyApr 20 2022, 10:33 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 423800 lldb/source/Plugins/SymbolFile/NativePDB/DWARFLocationExpression.h
lldb/source/Plugins/SymbolFile/NativePDB/DWARFLocationExpression.cpp
lldb/source/Plugins/SymbolFile/NativePDB/PdbUtil.cpp
lldb/test/Shell/SymbolFile/NativePDB/local-variables-registers.s
|
Maybe add a comment about the order being deliberatele inverted.