Author: Ebuka Ezike
Date: 2025-05-19T23:25:33+01:00
New Revision: 2523a8358ab9526a46f825fd94cc8a5d018f5ff7

URL: 
https://github.com/llvm/llvm-project/commit/2523a8358ab9526a46f825fd94cc8a5d018f5ff7
DIFF: 
https://github.com/llvm/llvm-project/commit/2523a8358ab9526a46f825fd94cc8a5d018f5ff7.diff

LOG: [lldb-dap] launch the adapter from the workspace folder. (#140604)

if the `cwd` option is empty this means the adapter is created in the
home folder.

Any relative file saved is in the home folder. The files should be
relative to the current workspace folder.

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 3a86d1f3f418f..d61b81e4c041f 100644
--- a/lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts
+++ b/lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts
@@ -184,6 +184,7 @@ export async function createDebugAdapterExecutable(
       ...configEnvironment,
       ...env,
     },
+    cwd: workspaceFolder!!.uri.fsPath,
   };
   const dbgArgs = await getDAPArguments(workspaceFolder, configuration);
 


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

Reply via email to