mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-09 19:43:27 +02:00
Bug 489750: [Standalone] does not set working directory of the target
process correctly Change-Id: Ia6d9f1ee64b573d2cba3bba780c2b8c90fe0757d Signed-off-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
This commit is contained in:
parent
08d975066c
commit
ee48887d9d
1 changed files with 9 additions and 4 deletions
|
@ -296,10 +296,15 @@ public class DebugExecutable {
|
||||||
wc.setAttribute(
|
wc.setAttribute(
|
||||||
ICDTLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY,
|
ICDTLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY,
|
||||||
(String) null);
|
(String) null);
|
||||||
if (arguments != null)
|
|
||||||
wc.setAttribute(
|
if (arguments != null) {
|
||||||
ICDTLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,
|
wc.setAttribute(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, arguments);
|
||||||
arguments);
|
}
|
||||||
|
|
||||||
|
// Use the PWD as the working directory for the application being launched
|
||||||
|
wc.setAttribute(ICDTLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY,
|
||||||
|
System.getProperty("user.dir")); //$NON-NLS-1$
|
||||||
|
|
||||||
if (save) {
|
if (save) {
|
||||||
config = wc.doSave();
|
config = wc.doSave();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue