[Lldb-commits] [lldb] r186112 - Fix unhandled SIGTRAP signal on Linux causing assertion.

Matt Kopec Matt.Kopec at intel.com
Thu Jul 11 13:01:23 PDT 2013


Author: mkopec
Date: Thu Jul 11 15:01:22 2013
New Revision: 186112

URL: http://llvm.org/viewvc/llvm-project?rev=186112&view=rev
Log:
Fix unhandled SIGTRAP signal on Linux causing assertion.

Modified:
    lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.cpp

Modified: lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.cpp?rev=186112&r1=186111&r2=186112&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.cpp Thu Jul 11 15:01:22 2013
@@ -1549,6 +1549,13 @@ ProcessMonitor::MonitorSIGTRAP(ProcessMo
             log->Printf ("ProcessMonitor::%s() received watchpoint event, pid = %" PRIu64, __FUNCTION__, pid);
         message = ProcessMessage::Watch(pid, (lldb::addr_t)info->si_addr);
         break;
+
+    case SIGTRAP:
+    case (SIGTRAP | 0x80):
+        if (log)
+            log->Printf ("ProcessMonitor::%s() received system call stop event, pid = %" PRIu64, __FUNCTION__, pid);
+        // Ignore these signals until we know more about them
+        monitor->Resume(pid, eResumeSignalNone);
     }
 
     return message;





More information about the lldb-commits mailing list