[Lldb-commits] [patch] implement process launch with a user-specified working directory on Linux

Malea, Daniel daniel.malea at intel.com
Fri Jan 4 16:43:45 PST 2013


Hi all,

I noticed that on Linux (and FreeBSD) the working directory specified to the "process launch" command is ignored. Here's a patch that implements the correct behaviour on Linux by propagating the working directory string down through ProcessPOSIX and ProcessMonitor, and eventually just calls ::chdir() before launching the inferior process.

It's all pretty straight forward, but since there's a common interface with FreeBSD (ProcessMonitor) that I had to modify the constructor of, I figured I'd ask here if someone could take a look when they have a spare moment.

This patch fixes the TestProcessLaunch test case.

Thanks in advance,
Dan


Daniel Malea daniel.malea at intel.com<mailto:daniel.malea at intel.com>
  Intel Embedded Computing, Debuggers & Libraries
  Intel Waterloo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20130105/c2f3eaf3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: working_dir.patch
Type: application/octet-stream
Size: 7143 bytes
Desc: working_dir.patch
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20130105/c2f3eaf3/attachment.obj>


More information about the lldb-commits mailing list