Bug 368162 - LLDB: Working directory is not changed to the one specified in configuration
Summary: LLDB: Working directory is not changed to the one specified in configuration
Status: RESOLVED UPSTREAM
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-02 17:09 UTC by Alexander Potashev
Modified: 2016-09-02 23:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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