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

via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 12 04:42:13 PST 2025


https://github.com/Da-Viper created https://github.com/llvm/llvm-project/pull/126903

Fixes #120839

>From 253ce7d35c15022220606391eb4242fe3b32734c Mon Sep 17 00:00:00 2001
From: Ezike Ebuka <yerimyah1 at gmail.com>
Date: Wed, 12 Feb 2025 12:38:31 +0000
Subject: [PATCH] [lldb-dap] Fix: compare with the string instead of promise.

---
 lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 55c2f3e9f7deb..7607053041c8c 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