diff options
author | Johnny Chen <johnny.chen@apple.com> | 2012-01-05 21:48:15 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2012-01-05 21:48:15 +0000 |
commit | 9ed5b49c45ba377cffbc5d0d893b5437f50228af (patch) | |
tree | 386909c95bde01a8a2071c1b5f7d2c78b5187c5a /lldb/source/Plugins/Process/POSIX/POSIXStopInfo.cpp | |
parent | 9afd449e8ff4382d9479cfbc7acc38d74fbcfc76 (diff) | |
download | bcm5719-llvm-9ed5b49c45ba377cffbc5d0d893b5437f50228af.tar.gz bcm5719-llvm-9ed5b49c45ba377cffbc5d0d893b5437f50228af.zip |
Fix incomplete commit of http://llvm.org/viewvc/llvm-project?rev=147609&view=rev:
This patch combines common code from Linux and FreeBSD into
a new POSIX platform. It also contains fixes for 64bit FreeBSD.
The patch is based on changes by Mark Peek <mp@FreeBSD.org> and
"K. Macy" <kmacy@freebsd.org> in their github repo located at
https://github.com/fbsd/lldb.
llvm-svn: 147613
Diffstat (limited to 'lldb/source/Plugins/Process/POSIX/POSIXStopInfo.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/POSIX/POSIXStopInfo.cpp | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/POSIX/POSIXStopInfo.cpp b/lldb/source/Plugins/Process/POSIX/POSIXStopInfo.cpp new file mode 100644 index 00000000000..79f0a58115b --- /dev/null +++ b/lldb/source/Plugins/Process/POSIX/POSIXStopInfo.cpp @@ -0,0 +1,60 @@ +//===-- POSIXStopInfo.cpp ---------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "POSIXStopInfo.h" + +using namespace lldb; +using namespace lldb_private; + + +//===----------------------------------------------------------------------===// +// POSIXLimboStopInfo + +POSIXLimboStopInfo::~POSIXLimboStopInfo() { } + +lldb::StopReason +POSIXLimboStopInfo::GetStopReason() const +{ + return lldb::eStopReasonTrace; +} + +const char * +POSIXLimboStopInfo::GetDescription() +{ + return "thread exiting"; +} + +bool +POSIXLimboStopInfo::ShouldStop(Event *event_ptr) +{ + return true; +} + +bool +POSIXLimboStopInfo::ShouldNotify(Event *event_ptr) +{ + return true; +} + +//===----------------------------------------------------------------------===// +// POSIXCrashStopInfo + +POSIXCrashStopInfo::~POSIXCrashStopInfo() { } + +lldb::StopReason +POSIXCrashStopInfo::GetStopReason() const +{ + return lldb::eStopReasonException; +} + +const char * +POSIXCrashStopInfo::GetDescription() +{ + return ProcessMessage::GetCrashReasonString(m_crash_reason); +} |