summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorAlexander Shaposhnikov <shal1t712@gmail.com>2017-10-03 19:56:21 +0000
committerAlexander Shaposhnikov <shal1t712@gmail.com>2017-10-03 19:56:21 +0000
commit56138de385947e1b1c3ea4792c38a10893435b88 (patch)
tree153456f0ccd60276b1ffddb9c9d4530c204f6ef4 /clang/lib
parent77886fc0f0754bf8d810a16a2ae5ea9db7e00a7e (diff)
downloadbcm5719-llvm-56138de385947e1b1c3ea4792c38a10893435b88.tar.gz
bcm5719-llvm-56138de385947e1b1c3ea4792c38a10893435b88.zip
[lldb] Fix initialization of m_debug_cu_index_map
SymbolFileDWARFDwp contains m_debug_cu_index_map which was previously initialized incorrectly: before m_debug_cu_index.parse is called m_debug_cu_index is empty, thus the map was not actually getting populated properly. This diff moves this step into a private helper method and calls it after m_debug_cu_index.parse inside SymbolFileDWARFDwp::Create. Test plan: Build a toy test example main.cpp clang -gsplit-dwarf -g -O0 main.cpp -o main.exe llvm-dwp -e main.exe -o main.exe.dwp Build LLDB with ENABLE_DEBUG_PRINTF set. Run: lldb -- ./main.exe Check that the indexes are now correct (before this change they were empty) Check that debugging works (setting breakpoints, printing local variables (this was not working before)) Differential revision: http://reviews.llvm.org/D38492 llvm-svn: 314832
Diffstat (limited to 'clang/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud