summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
diff options
context:
space:
mode:
authorChaoren Lin <chaorenl@google.com>2015-02-03 01:51:25 +0000
committerChaoren Lin <chaorenl@google.com>2015-02-03 01:51:25 +0000
commit28e57429fcfd6ef45919e89a641ebabf0a568f09 (patch)
tree3662703b83ebd78f90e2188ffa099e21fe741f24 /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
parent72b8f058789fbd4d46be300609018de260002a7f (diff)
downloadbcm5719-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/NativeProcessLinux.cpp')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
index 13b9c27be0b..918eb4ab106 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<NativeThreadLinux*> (thread_sp.get ())->SetStoppedBySignal (SIGTRAP);
+ reinterpret_cast<NativeThreadLinux*> (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<NativeThreadLinux*> (thread_sp.get ())->SetStoppedBySignal (SIGTRAP);
+ reinterpret_cast<NativeThreadLinux*> (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<NativeThreadLinux*>(thread_sp.get())->SetCrashedWithException(
- signo, reinterpret_cast<lldb::addr_t>(info->si_addr));
+ reinterpret_cast<NativeThreadLinux*> (thread_sp.get ())->SetCrashedWithException (*info);
break;
default:
// This is just a pre-signal-delivery notification of the incoming signal.
OpenPOWER on IntegriCloud