[lldb] Allow SymbolFileDWARFDebugMap to register multiple compile units
authorAugusto Noronha <augusto2112@me.com>
Mon, 17 Oct 2022 20:39:36 +0000 (13:39 -0700)
committerAugusto Noronha <augusto2112@me.com>
Wed, 19 Oct 2022 20:49:40 +0000 (13:49 -0700)
commit6f2423c6fe97bec77da66d87a7a997917f6b489e
tree1f6c5377d02080d13a32d90faf40c7a728b895c7
parentbb7b0a2dab91fabc17c2f047be52e22240b22457
[lldb] Allow SymbolFileDWARFDebugMap to register multiple compile units

Currently, SymbolFileDWARFDebugMap works on the assumption that there is
only one compile unit per object file. This patch documents this
limitation (when using the general SymbolFile API), and allows users of
the concrete SymbolFileDWARFDebugMap class to find out about these extra
compile units.

Differential Revision: https://reviews.llvm.org/D136114
lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.h
lldb/test/API/lang/c/full_lto_stepping/Makefile [new file with mode: 0644]
lldb/test/API/lang/c/full_lto_stepping/TestFullLtoStepping.py [new file with mode: 0644]
lldb/test/API/lang/c/full_lto_stepping/foo.c [new file with mode: 0644]
lldb/test/API/lang/c/full_lto_stepping/foo.h [new file with mode: 0644]
lldb/test/API/lang/c/full_lto_stepping/main.c [new file with mode: 0644]