Add a testcase for Clang modules being updated within one LLDB session.
This actually works as expected, but wasn't explicitly tested before.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user