[Lldb-commits] [lldb] 4238238 - [lldb-dap] Fix: Could not find DAP in path (#126903)

via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 12 16:11:47 PST 2025


Author: Da-Viper
Date: 2025-02-12T16:11:43-08:00
New Revision: 42382386843244cbbac0e23029e07969048e62c7

URL: https://github.com/llvm/llvm-project/commit/42382386843244cbbac0e23029e07969048e62c7
DIFF: https://github.com/llvm/llvm-project/commit/42382386843244cbbac0e23029e07969048e62c7.diff

LOG: [lldb-dap] Fix: Could not find DAP in path (#126903)

Fixes #120839

Added: 
    

Modified: 
    lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts

Removed: 
    


################################################################################
diff  --git a/lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts b/lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts
index e1c6bd4fd4300..36107336ebc4d 100644
--- a/lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts
+++ b/lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts
@@ -50,13 +50,13 @@ async function findDAPExecutable(): Promise<string | undefined> {
   const executable = process.platform === "win32" ? "lldb-dap.exe" : "lldb-dap";
 
   // Prefer lldb-dap from Xcode on Darwin.
-  const xcrun_dap = findWithXcrun(executable);
+  const xcrun_dap = await findWithXcrun(executable);
   if (xcrun_dap) {
     return xcrun_dap;
   }
 
   // Find lldb-dap in the user's path.
-  const path_dap = findInPath(executable);
+  const path_dap = await findInPath(executable);
   if (path_dap) {
     return path_dap;
   }


        


More information about the lldb-commits mailing list