[Lldb-commits] [PATCH] Fix lldb-gdbserver gdb-remote unit tests that require attaching to the inferior.

Todd Fiala todd.fiala at gmail.com
Fri Oct 17 11:38:11 PDT 2014


Some Linux kernels have a ptrace security feature that prevents a ptracer from attaching to the inferior if the ptracer is not an ancestor in the process hierarchy.  In the gdb-remote attach tests, the llgs is not a parent of the inferior, so kernels that protect against this are failing on the attach tests.

This change to the inferior test program checks if the inferior is running on Linux and has the relevant ptrace flags, and if so, first thing enables a ptracer that is not part of the parent hierarchy.

http://reviews.llvm.org/D5846

Files:
  test/tools/lldb-gdbserver/main.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5846.15089.patch
Type: text/x-patch
Size: 1186 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20141017/3c033b37/attachment.bin>


More information about the lldb-commits mailing list