[Lldb-commits] [lldb] [lldb] Add target modules replace command (PR #214576)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 9 14:49:02 PDT 2026


clayborg wrote:

> This is only true if you can show that once a Target gets a Module, it only ever looks it up in its module list and never asks the shared module cache for it. If it ever does GetSharedModule it's going to get the wrong one.

All clients asking for a module using a module spec from the global cache will get the new one. The old one is saved to ensure no dangling pointers in a separate list of replaced modules. 

https://github.com/llvm/llvm-project/pull/214576


More information about the lldb-commits mailing list