LLGS: fix tracking execve on linux
authorPavel Labath <pavel@labath.sk>
Thu, 25 Jul 2019 06:38:33 +0000 (06:38 +0000)
committerPavel Labath <pavel@labath.sk>
Thu, 25 Jul 2019 06:38:33 +0000 (06:38 +0000)
commitee74c9e5fdd8c8bcd08d219ed6132713323113a6
tree3332b4b3ca90b96ccb9635a0a061b9b00b6abde0
parentd5177643f0e16264a5e09b85dcafb9069db4abf5
LLGS: fix tracking execve on linux

Summary:
Due to a logic error, lldb-server ended up asserting/crashing every time
the debugged process attempted an execve(). This fixes the error, and
extends TestExec to work on other platforms too. The "extension"
consists of avoiding non-standard posix_spawn extensions and using the
classic execve() call, which should be available on any platform that
actually supports re-execing. I change the test decorator from
@skipUnlessDarwin to @skipIfWindows.

Reviewers: clayborg, jasonmolenda

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D65207

llvm-svn: 366985
lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py
lldb/packages/Python/lldbsuite/test/functionalities/exec/main.cpp
lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp