[Lldb-commits] [lldb] [lldb] Fix TestGlobalModuleCache.py for remote debugging (PR #111483)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 7 23:50:17 PDT 2024


================
@@ -111,6 +111,8 @@ def do_test(self, one_target, one_debugger):
         else:
             if one_target:
                 new_debugger = lldb.SBDebugger().Create()
+                if lldb.selected_platform is not None:
+                    new_debugger.SetSelectedPlatform(lldb.selected_platform)
----------------
labath wrote:

```suggestion
                new_debugger.SetSelectedPlatform(lldb.selected_platform)
```

The selected platform is set unconditionally, no need to hedge here.

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


More information about the lldb-commits mailing list