Fix unhandled SIGTRAP signal on Linux causing assertion.
llvm-svn: 186112
This commit is contained in:
parent
14e9541916
commit
4a32bf58d1
|
@ -1549,6 +1549,13 @@ ProcessMonitor::MonitorSIGTRAP(ProcessMonitor *monitor,
|
||||||
log->Printf ("ProcessMonitor::%s() received watchpoint event, pid = %" PRIu64, __FUNCTION__, pid);
|
log->Printf ("ProcessMonitor::%s() received watchpoint event, pid = %" PRIu64, __FUNCTION__, pid);
|
||||||
message = ProcessMessage::Watch(pid, (lldb::addr_t)info->si_addr);
|
message = ProcessMessage::Watch(pid, (lldb::addr_t)info->si_addr);
|
||||||
break;
|
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;
|
return message;
|
||||||
|
|
Loading…
Reference in New Issue