[Lldb-commits] [PATCH] D11150: [NativeProcessLinux] Integrate MainLoop

Pavel Labath labath at google.com
Mon Jul 13 08:54:10 PDT 2015


labath created this revision.
labath added reviewers: ovyalov, clayborg, tberghammer, chaoren.
labath added a subscriber: lldb-commits.

This commit integrates MainLoop into NativeProcessLinux. By registering a SIGCHLD handler with
the llgs main loop, we can get rid of the special monitor thread in NPL, which saves as a lot of
thread ping-pong when responding to client requests (e.g. qThreadInfo processing time has been
reduced by about 40%). It also makes the code simpler, IMHO.

http://reviews.llvm.org/D11150

Files:
  include/lldb/Host/common/NativeProcessProtocol.h
  source/Host/common/NativeProcessProtocol.cpp
  source/Plugins/Process/Linux/NativeProcessLinux.cpp
  source/Plugins/Process/Linux/NativeProcessLinux.h
  source/Plugins/Process/Linux/NativeRegisterContextLinux.cpp
  source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp
  source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp
  source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11150.29583.patch
Type: text/x-patch
Size: 43037 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150713/c0d74dcb/attachment.bin>


More information about the lldb-commits mailing list