diff options
| author | Chaoren Lin <chaorenl@google.com> | 2015-02-03 01:51:25 +0000 |
|---|---|---|
| committer | Chaoren Lin <chaorenl@google.com> | 2015-02-03 01:51:25 +0000 |
| commit | 28e57429fcfd6ef45919e89a641ebabf0a568f09 (patch) | |
| tree | 3662703b83ebd78f90e2188ffa099e21fe741f24 /lldb/source/Plugins/Process/POSIX/POSIXStopInfo.cpp | |
| parent | 72b8f058789fbd4d46be300609018de260002a7f (diff) | |
| download | bcm5719-llvm-28e57429fcfd6ef45919e89a641ebabf0a568f09.tar.gz bcm5719-llvm-28e57429fcfd6ef45919e89a641ebabf0a568f09.zip | |
Share crash information between LLGS and local POSIX debugging with
CrashReason class. Deliver crash information from LLGS to lldb via
description field of thread stop packet.
llvm-svn: 227926
Diffstat (limited to 'lldb/source/Plugins/Process/POSIX/POSIXStopInfo.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/POSIX/POSIXStopInfo.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lldb/source/Plugins/Process/POSIX/POSIXStopInfo.cpp b/lldb/source/Plugins/Process/POSIX/POSIXStopInfo.cpp index 6e2c140682b..3b8cea737bc 100644 --- a/lldb/source/Plugins/Process/POSIX/POSIXStopInfo.cpp +++ b/lldb/source/Plugins/Process/POSIX/POSIXStopInfo.cpp @@ -45,6 +45,15 @@ POSIXLimboStopInfo::ShouldNotify(Event *event_ptr) //===----------------------------------------------------------------------===// // POSIXCrashStopInfo +POSIXCrashStopInfo::POSIXCrashStopInfo(POSIXThread &thread, + uint32_t status, + CrashReason reason, + lldb::addr_t fault_addr) + : POSIXStopInfo(thread, status) +{ + m_description = ::GetCrashReasonString(reason, fault_addr); +} + POSIXCrashStopInfo::~POSIXCrashStopInfo() { } lldb::StopReason @@ -53,12 +62,6 @@ POSIXCrashStopInfo::GetStopReason() const return lldb::eStopReasonException; } -const char * -POSIXCrashStopInfo::GetDescription() -{ - return ProcessMessage::GetCrashReasonString(m_crash_reason, m_fault_addr); -} - //===----------------------------------------------------------------------===// // POSIXNewThreadStopInfo |

