ParseXcodeSDK: Register both the CU module and the SymbolFile module.
authorAdrian Prantl <aprantl@apple.com>
Wed, 6 May 2020 17:34:51 +0000 (10:34 -0700)
committerAdrian Prantl <aprantl@apple.com>
Wed, 6 May 2020 23:46:22 +0000 (16:46 -0700)
commit01fc85dc9618394868b795c5087d9da03df9c58b
treea54da7538a9dcedff293e7703b59df1844ebbf57
parentd71c3c425cf567b966d88e56651b8b052b08a97c
ParseXcodeSDK: Register both the CU module and the SymbolFile module.

For Swift LLDB (but potentially also for module support in Clang-land)
we need a way to accumulate the path remappings produced by
Module::RegisterXcodeSDK(). In order to make this work for
SymbolFileDebugMaps, registering the search path remapping with both
modules is necessary.

Differential Revision: https://reviews.llvm.org/D79384

<rdar://problem/62750529>
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.h
lldb/unittests/SymbolFile/DWARF/XcodeSDKModuleTests.cpp