[Lldb-commits] [PATCH] D134581: [lldb] Prevent re-adding a module that is already loaded

Jason Molenda via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sat Sep 24 17:03:22 PDT 2022


jasonmolenda added a comment.

I'll have to admit, a quick read through of Target::GetOrAddModule() worries me about adding this mid-function return - the code clearly has a mix of cases where it has found a Module on disk that is new to lldb and is loading it, it has found a module in lldb's global module cache which has the same UUID and/or filepath, and something in there about a Target which already has a module and the newly loaded module is used to replace it - not sure what that's about, but I only read it quickly.  My initial impression is that this change is unlikely to be the right thing to do, tbh, regardless of the more basic "why are we in this situation in the first place".   Again, I might be mistaken/not understanding the issue properly though.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134581/new/

https://reviews.llvm.org/D134581



More information about the lldb-commits mailing list