Add an unnamed pipe fail-safe to launching lldb-gdbserver.
authorChaoren Lin <chaorenl@google.com>
Mon, 27 Apr 2015 23:20:30 +0000 (23:20 +0000)
committerChaoren Lin <chaorenl@google.com>
Mon, 27 Apr 2015 23:20:30 +0000 (23:20 +0000)
commit368c9f6e9b050897dcae4cb84e1cd54e91287a24
tree2aae3487d1323eb23559b5a9c4cdaf89c12c0e28
parent7832e0a2f05c07101f8b320220a1165b2e148e4d
Add an unnamed pipe fail-safe to launching lldb-gdbserver.

Summary:
Currently, launching lldb-gdbserver from platform on Android requires root for
mkfifo() and an explicit TMPDIR variable. This should remove both requirements.

Test Plan: Successfully launched lldb-gdbserver on a non-rooted Android device.

Reviewers: tberghammer, vharron, clayborg

Reviewed By: clayborg

Subscribers: tberghammer, lldb-commits

Differential Revision: http://reviews.llvm.org/D9307

llvm-svn: 235940
lldb/include/lldb/Host/posix/PipePosix.h
lldb/source/Host/posix/PipePosix.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
lldb/tools/lldb-server/lldb-gdbserver.cpp