From 28e57429fcfd6ef45919e89a641ebabf0a568f09 Mon Sep 17 00:00:00 2001 From: Chaoren Lin Date: Tue, 3 Feb 2015 01:51:25 +0000 Subject: 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 --- lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp') diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp index 13b9c27be0bf..918eb4ab1061 100644 --- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp @@ -2255,7 +2255,7 @@ NativeProcessLinux::MonitorSIGTRAP(const siginfo_t *info, lldb::pid_t pid) if (thread_sp) { - reinterpret_cast (thread_sp.get ())->SetStoppedBySignal (SIGTRAP); + reinterpret_cast (thread_sp.get ())->SetStoppedByTrace (); } // This thread is currently stopped. @@ -2281,7 +2281,7 @@ NativeProcessLinux::MonitorSIGTRAP(const siginfo_t *info, lldb::pid_t pid) // Mark the thread as stopped at breakpoint. if (thread_sp) { - reinterpret_cast (thread_sp.get ())->SetStoppedBySignal (SIGTRAP); + reinterpret_cast (thread_sp.get ())->SetStoppedByBreakpoint (); Error error = FixupBreakpointPCAsNeeded (thread_sp); if (error.Fail ()) { @@ -2538,8 +2538,7 @@ NativeProcessLinux::MonitorSignal(const siginfo_t *info, lldb::pid_t pid, bool e case SIGFPE: case SIGBUS: if (thread_sp) - reinterpret_cast(thread_sp.get())->SetCrashedWithException( - signo, reinterpret_cast(info->si_addr)); + reinterpret_cast (thread_sp.get ())->SetCrashedWithException (*info); break; default: // This is just a pre-signal-delivery notification of the incoming signal. -- cgit v1.2.3