[Lldb-commits] [PATCH] D64647: [lldb] [Process/NetBSD] Implement per-thread executation control

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Jul 12 10:24:09 PDT 2019


mgorny created this revision.
mgorny added reviewers: krytarowski, labath.
Herald added subscribers: teemperor, abidh.
Herald added a project: LLDB.

Implement the full logic providing the ability to run, single-step
or suspend each thread separately.  This replaces the old code that
propagated the status of first thread to all of them.  It uses newer
APIs PT_RESUME/PT_SUSPEND and PT_SETSTEP/PT_CLEARSTEP.

It also uses the PT_SET_SIGINFO call to allow sending signal to a single
thread, in addition to sending it to entire process.  Due to API
limitations, sending signal to 1<x<n threads is not supported, neither
is sending two different signals simultaneously.


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D64647

Files:
  lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp
  lldb/source/Plugins/Process/NetBSD/NativeThreadNetBSD.cpp
  lldb/source/Plugins/Process/NetBSD/NativeThreadNetBSD.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64647.209523.patch
Type: text/x-patch
Size: 7075 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190712/c7c58a62/attachment.bin>


More information about the lldb-commits mailing list