[Lldb-commits] [PATCH] D141702: [lldb/crashlog] Make module loading use Scripted Process affordance

Alex Langford via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Jan 17 11:48:51 PST 2023


bulbazord requested changes to this revision.
bulbazord added inline comments.


================
Comment at: lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp:421
   Target &target = GetTarget();
+  bool force_lookup = m_scripted_metadata.GetClassName().contains("CrashLog");
 
----------------
JDevlieghere wrote:
> This seems inverted: rather than the generic scripted process implementation having to know about a concrete implementation, why not make this a capability that the crashlog can opt into?
Instead of relying on the class name being `CrashLog`, why not ask the scripted metadata for its capabilities? Something like `bool force_lookup = m_scripted_metadata.ShouldForceSymbolFileLookup();` or something to this effect?


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

https://reviews.llvm.org/D141702



More information about the lldb-commits mailing list