forked from OSchip/llvm-project
If the user sets a working directory path using "process launch -w <path>", honor that dir path;
otherwise, use the thing the debugserver is started with. Fixed rdar://problem/9056462 The process launch flag '-w' for setting the current working directory not working? llvm-svn: 126537
This commit is contained in:
parent
8f4903397d
commit
725269a0b4
|
@ -204,10 +204,12 @@ RNBRunLoopLaunchInferior (RNBRemote *remote, const char *stdin_path, const char
|
||||||
|
|
||||||
char launch_err_str[PATH_MAX];
|
char launch_err_str[PATH_MAX];
|
||||||
launch_err_str[0] = '\0';
|
launch_err_str[0] = '\0';
|
||||||
|
const char * cwd = (ctx.GetWorkingDirPath() != NULL ? ctx.GetWorkingDirPath()
|
||||||
|
: ctx.GetWorkingDirectory());
|
||||||
nub_process_t pid = DNBProcessLaunch (resolved_path,
|
nub_process_t pid = DNBProcessLaunch (resolved_path,
|
||||||
&inferior_argv[0],
|
&inferior_argv[0],
|
||||||
&inferior_envp[0],
|
&inferior_envp[0],
|
||||||
ctx.GetWorkingDirectory(),
|
cwd,
|
||||||
stdin_path,
|
stdin_path,
|
||||||
stdout_path,
|
stdout_path,
|
||||||
stderr_path,
|
stderr_path,
|
||||||
|
|
Loading…
Reference in New Issue