Avoid passing null signal name for Log %s argument
llvm-svn: 209739
This commit is contained in:
parent
33c1787147
commit
4aeb3c0a4c
|
@ -1628,9 +1628,13 @@ ProcessMonitor::Resume(lldb::tid_t unused, uint32_t signo)
|
|||
bool result;
|
||||
Log *log (ProcessPOSIXLog::GetLogIfAllCategoriesSet (POSIX_LOG_PROCESS));
|
||||
|
||||
if (log)
|
||||
log->Printf ("ProcessMonitor::%s() resuming pid %" PRIu64 " with signal %s", __FUNCTION__, GetPID(),
|
||||
m_process->GetUnixSignals().GetSignalAsCString (signo));
|
||||
if (log) {
|
||||
const char *signame = m_process->GetUnixSignals().GetSignalAsCString (signo);
|
||||
if (signame == nullptr)
|
||||
signame = "<none>";
|
||||
log->Printf("ProcessMonitor::%s() resuming pid %" PRIu64 " with signal %s",
|
||||
__FUNCTION__, GetPID(), signame);
|
||||
}
|
||||
ResumeOperation op(signo, result);
|
||||
DoOperation(&op);
|
||||
if (log)
|
||||
|
|
Loading…
Reference in New Issue