Add logging to SBProcess::GetRestartedFromEvent

llvm-svn: 256853
This commit is contained in:
Pavel Labath 2016-01-05 17:55:35 +00:00
parent 2acc48827e
commit ea2cc5e028
1 changed files with 8 additions and 1 deletions

View File

@ -995,7 +995,14 @@ SBProcess::GetStateFromEvent (const SBEvent &event)
bool
SBProcess::GetRestartedFromEvent (const SBEvent &event)
{
return Process::ProcessEventData::GetRestartedFromEvent (event.get());
Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
bool ret_val = Process::ProcessEventData::GetRestartedFromEvent (event.get());
if (log)
log->Printf ("SBProcess::%s (event.sp=%p) => %d", __FUNCTION__, event.get(), ret_val);
return ret_val;
}
size_t