[Lldb-commits] [lldb] [lldb-dap] Added "port" property to vscode "attach" command. (PR #91570)

Walter Erquinigo via lldb-commits lldb-commits at lists.llvm.org
Thu May 16 07:21:27 PDT 2024


================
@@ -1572,6 +1572,15 @@ def findBuiltClang(self):
 
         return os.environ["CC"]
 
+    def getBuiltinServerTool(self, server_tool):
+        # Tries to find simulation/lldb-server/gdbserver tool at the same folder as the lldb.
+        lldb_dir = os.path.dirname(lldbtest_config.lldbExec)
+        path = shutil.which(server_tool, path=lldb_dir)
+        if path is not None:
+            return path
+
+        return ""
----------------
walter-erquinigo wrote:

return None instead of an empty string

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


More information about the lldb-commits mailing list