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;
   }


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to