Bug 368162

Summary: LLDB: Working directory is not changed to the one specified in configuration
Product: [Applications] kdevelop Reporter: Alexander Potashev <aspotashev>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED UPSTREAM    
Severity: normal CC: pfyu817
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alexander Potashev 2016-09-02 17:09:36 UTC
See Steps to Reproduce.

Reproducible: Always

Steps to Reproduce:
1. Add Run Configuration for a C++ application.
2. Set Working Directory in that run configuration to something different from $HOME.
3. Switch debugger to LLDB.
4. Start debugging.

Actual Results:  
Application's working directory is set to $HOME.

Expected Results:  
Application's working directory should be set to the path specified in "Working Directory:" field in the run configuration. It works with GDB.

Built from Git master, top commit:

commit f9b262cd926151c30f4eae42ac7a7e56c7392edf
Author: Kevin Funk <kfunk@kde.org>
Date:   Tue Aug 30 20:26:01 2016 +0200

    lldb: Fix loading of resource with kxmlgui files
    
    Otherwise kdevlldbui.rc can't be found
Comment 1 Peifeng Yu 2016-09-02 23:48:42 UTC
Fixed with commit 3bf6698e63a7b65984cb7d0cc87fa764b654ae0e, but won't work unless upstream bug fixed: https://llvm.org/bugs/show_bug.cgi?id=30265