summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/thread
diff options
context:
space:
mode:
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>2019-02-07 15:24:18 +0000
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>2019-02-07 15:24:18 +0000
commit120366edc733ac85ba71e45ecb96edfa9ce9b9d3 (patch)
tree8fea50ae302f46fd965b105df265ea11a5d1f09d /lldb/packages/Python/lldbsuite/test/python_api/thread
parent892e63319497bfbea7c93d763c43a1944d6d7ab4 (diff)
downloadbcm5719-llvm-120366edc733ac85ba71e45ecb96edfa9ce9b9d3.tar.gz
bcm5719-llvm-120366edc733ac85ba71e45ecb96edfa9ce9b9d3.zip
[CodeView] Fix cycles in debug info when merging Types with global hashes
When type streams with forward references were merged using GHashes, cycles were introduced in the debug info. This was caused by GlobalTypeTableBuilder::insertRecordAs() not inserting the record on the second pass, thus yielding an empty ArrayRef at that record slot. Later on, upon PDB emission, TpiStreamBuilder::commit() would skip that empty record, thus offseting all indices that came after in the stream. This solution comes in two steps: 1. Fix the hash calculation, by doing a multiple-step resolution, iff there are forward references in the input stream. 2. Fix merge by resolving with multiple passes, therefore moving records with forward references at the end of the stream. This patch also adds support for llvm-readoj --codeview-ghash. Finally, fix dumpCodeViewMergedTypes() which previously could reference deleted memory. Fixes PR40221 Differential Revision: https://reviews.llvm.org/D57790 llvm-svn: 353412
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud