summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/POSIX/ProcessMessage.h
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2013-09-03 23:55:30 +0000
committerEd Maste <emaste@freebsd.org>2013-09-03 23:55:30 +0000
commite544143f0324a45614bb041a491fd72e9be11b43 (patch)
treed1f3de539e6365c17e84f407d55b51cd3eefac3c /lldb/source/Plugins/Process/POSIX/ProcessMessage.h
parentcc7ee374e2a894dbbf706b43edbe5d232602c976 (diff)
downloadbcm5719-llvm-e544143f0324a45614bb041a491fd72e9be11b43.tar.gz
bcm5719-llvm-e544143f0324a45614bb041a491fd72e9be11b43.zip
Clean up handling of FreeBSD thread list on Launch / Attach
Instead of directly manipulating the thread list in Launch and Attach, just rely on RefreshStateAfterStop to populate the initial list. Review: http://llvm-reviews.chandlerc.com/D1565 llvm-svn: 189889
Diffstat (limited to 'lldb/source/Plugins/Process/POSIX/ProcessMessage.h')
-rw-r--r--lldb/source/Plugins/Process/POSIX/ProcessMessage.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/POSIX/ProcessMessage.h b/lldb/source/Plugins/Process/POSIX/ProcessMessage.h
index c6c460c1344..720c9e76939 100644
--- a/lldb/source/Plugins/Process/POSIX/ProcessMessage.h
+++ b/lldb/source/Plugins/Process/POSIX/ProcessMessage.h
@@ -23,6 +23,7 @@ public:
enum Kind
{
eInvalidMessage,
+ eAttachMessage,
eExitMessage,
eLimboMessage,
eSignalMessage,
@@ -79,6 +80,11 @@ public:
lldb::tid_t GetTID() const { return m_tid; }
+ /// Indicates that the process @p pid has successfully attached.
+ static ProcessMessage Attach(lldb::pid_t pid) {
+ return ProcessMessage(pid, eAttachMessage);
+ }
+
/// Indicates that the thread @p tid is about to exit with status @p status.
static ProcessMessage Limbo(lldb::tid_t tid, int status) {
return ProcessMessage(tid, eLimboMessage, status);
OpenPOWER on IntegriCloud