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/Linux/NativeThreadLinux.h | |
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/Linux/NativeThreadLinux.h')
-rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeThreadLinux.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h index 2effd849006..1e4ae53e322 100644 --- a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h +++ b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h @@ -34,7 +34,7 @@ namespace lldb_private GetState () override; bool - GetStopReason (ThreadStopInfo &stop_info) override; + GetStopReason (ThreadStopInfo &stop_info, std::string& description) override; NativeRegisterContextSP GetRegisterContext () override; @@ -45,9 +45,6 @@ namespace lldb_private Error RemoveWatchpoint (lldb::addr_t addr) override; - uint32_t - TranslateStopInfoToGdbSignal (const ThreadStopInfo &stop_info) const override; - private: // --------------------------------------------------------------------- // Interface for friend classes @@ -80,7 +77,10 @@ namespace lldb_private IsStoppedAtBreakpoint (); void - SetCrashedWithException (uint64_t exception_type, lldb::addr_t exception_addr); + SetStoppedByTrace (); + + void + SetCrashedWithException (const siginfo_t& info); void SetSuspended (); @@ -100,6 +100,7 @@ namespace lldb_private lldb::StateType m_state; ThreadStopInfo m_stop_info; NativeRegisterContextSP m_reg_context_sp; + std::string m_stop_description; }; } |