[Lldb-commits] [lldb] [lldb/Plugins] Introduce Scripted Platform Plugin (PR #99814)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 5 04:52:19 PDT 2024


================
@@ -180,7 +184,19 @@ class CommandObjectPlatformSelect : public CommandObjectParsed {
             m_interpreter, ArchSpec(), select, error, platform_arch));
         if (platform_sp) {
           GetDebugger().GetPlatformList().SetSelectedPlatform(platform_sp);
-
+          OptionGroupPythonClassWithDict &script_class_opts =
----------------
labath wrote:

Okay, this is better, though a more user-focused error message would be even better ("platform XXX does not support scripting metadata" ?) I'm less worried about what happens in the SB API version, though if the operation can fail for more than one reason, then it might be a good idea to add an `SBError&` to the appropriate constructor.

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


More information about the lldb-commits mailing list