================ @@ -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 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits