RFC https://discourse.llvm.org/t/rfc-python-callback-for-target-get-module/71580
Updated Target::GetOrCreateModule to call locate module callback if set.
- include/lldb/Target/Platform.h, source/Target/Platform.cpp
- Implemented SetLocateModuleCallback and GetLocateModuleCallback*
- include/lldb/Target/Target.h, source/Target/Target.cpp
- Implemented CallLocateModuleCallbackIfSet.
- unittests/Target/LocateModuleCallbackTest.cpp
- Added comprehensive GetOrCreateModule tests.
I think we still need a baton for the callback so clients can register a callback + void *.