diff options
author | Adrian Prantl <aprantl@apple.com> | 2019-11-15 16:25:46 -0800 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2019-11-15 16:27:14 -0800 |
commit | 0304360a40b45ffcbb040596d2a01733c0103455 (patch) | |
tree | ca756660dced21f62c168a3eeb74c2078fe6ec55 /lldb/source/Core | |
parent | d295087639a824d1c0a29868bab1860afe657eaf (diff) | |
download | bcm5719-llvm-0304360a40b45ffcbb040596d2a01733c0103455.tar.gz bcm5719-llvm-0304360a40b45ffcbb040596d2a01733c0103455.zip |
Add a testcase for Clang modules being updated within one LLDB session.
This actually works as expected, but wasn't explicitly tested before.
Diffstat (limited to 'lldb/source/Core')
-rw-r--r-- | lldb/source/Core/ModuleList.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/source/Core/ModuleList.cpp b/lldb/source/Core/ModuleList.cpp index b0567a902fd..07100bb81dc 100644 --- a/lldb/source/Core/ModuleList.cpp +++ b/lldb/source/Core/ModuleList.cpp @@ -752,9 +752,10 @@ Status ModuleList::GetSharedModule(const ModuleSpec &module_spec, Log *log(lldb_private::GetLogIfAnyCategoriesSet(LIBLLDB_LOG_MODULES)); if (log != nullptr) - LLDB_LOGF(log, - "module changed: %p, removing from global module list", - static_cast<void *>(module_sp.get())); + LLDB_LOGF( + log, "%p '%s' module changed: removing from global module list", + static_cast<void *>(module_sp.get()), + module_sp->GetFileSpec().GetFilename().GetCString()); shared_module_list.Remove(module_sp); module_sp.reset(); |