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

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Sun Aug 4 21:41:57 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 =
----------------
medismailben wrote:

So `Platform::SetMetadata` returns void, but `Platform::ReloadMetadata` returns an `llvm::Error` as you can see down below (line 196). When setting it from the command line, the user will see an error message and the command interpreter however from the SBAPI, since this is called from the `SBPlatform` constructor, there is no way to do error reporting (without adding an overload for the constructor), so the error is consumed and logged to the `lldb platform` channel.

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


More information about the lldb-commits mailing list