[lldb] Report old modules from ModuleList::ReplaceEquivalent
authorJoseph Tremoulet <jotrem@microsoft.com>
Fri, 30 Oct 2020 19:13:26 +0000 (15:13 -0400)
committerJoseph Tremoulet <jotrem@microsoft.com>
Fri, 30 Oct 2020 19:14:32 +0000 (15:14 -0400)
commitd20aa7ca422145fb4d07e16c1d0aa7de9e3554ea
tree7917e4e18e67200b5940ea4141161426b3af2764
parent61bfc703c3d36fbefc476cd3829065d983c1c792
[lldb] Report old modules from ModuleList::ReplaceEquivalent

This allows the Target to update its module list when loading a shared
module replaces an equivalent one.

A testcase is added which hits this codepath -- without the fix, the
target reports libbreakpad.so twice in its module list.

Reviewed By: jingham

Differential Revision: https://reviews.llvm.org/D89157
lldb/include/lldb/Core/ModuleList.h
lldb/source/Core/ModuleList.cpp
lldb/test/API/functionalities/postmortem/minidump-new/TestMiniDumpUUID.py