llvm-project/lldb/source
Alexander Shaposhnikov ff7b03fc85 [lldb] Adjust UpdateExternalModuleListIfNeeded method for the case of *.dwo
When LLDB loads "external" modules it looks at the
presence of DW_AT_GNU_dwo_name.
However, when the already created module
(corresponding to .dwo itself) is being processed,
it will see the presence of DW_AT_GNU_dwo_name
(which contains the name of dwo file) and
will try to call ModuleList::GetSharedModule again.
In some cases (i.e. for empty files) Clang 4.0
generates a *.dwo file which has DW_AT_GNU_dwo_name,
but no DW_AT_comp_dir. In this case the method
ModuleList::GetSharedModule will fail and
the warning will be printed. To workaround this issue, 
one can notice that in this case we don't actually need 
to try to load the already loaded module (corresponding to .dwo).

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D37295

llvm-svn: 313083
2017-09-12 22:14:36 +00:00
..
API Expose active and available platform lists via SBDebugger API 2017-08-09 09:20:40 +00:00
Breakpoint Add an auto-continue flag to breakpoints & locations. 2017-08-03 18:13:24 +00:00
Commands Add an auto-continue flag to breakpoints & locations. 2017-08-03 18:13:24 +00:00
Core [Core/Value] Remove dead code that hasn't been touched in years. NFC. 2017-09-03 19:24:58 +00:00
DataFormatters Use exact equality for category language matching, for all languages, except those specifically mentioned. 2017-06-06 20:40:24 +00:00
Expression Add support for the DWP debug info format 2017-08-25 13:56:14 +00:00
Host FreeBSD: attach to pid from different cwd 2017-09-03 01:41:31 +00:00
Initialization Move Timer and TraceOptions from Core to Utility 2017-06-29 14:32:17 +00:00
Interpreter [Interpreter] Simplify else after return. NFCI. 2017-09-03 19:27:56 +00:00
Plugins [lldb] Adjust UpdateExternalModuleListIfNeeded method for the case of *.dwo 2017-09-12 22:14:36 +00:00
Symbol [TypeSystem] Reduce code duplication merging two almost identical functions. 2017-08-31 18:47:49 +00:00
Target Log whether we found a step out plan or not. 2017-08-23 19:40:21 +00:00
Utility [UUID] Reimplement comparison operators more canonically. NFCI. 2017-09-03 20:53:24 +00:00
CMakeLists.txt Remove Plugins/Process/POSIX from include_directories 2017-04-11 12:26:25 +00:00
lldb.cpp One more cleanup to lldb version printing 2016-11-14 22:43:08 +00:00