[Lldb-commits] [lldb] r256853 - Add logging to SBProcess::GetRestartedFromEvent
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 5 09:55:35 PST 2016
Author: labath
Date: Tue Jan 5 11:55:35 2016
New Revision: 256853
URL: http://llvm.org/viewvc/llvm-project?rev=256853&view=rev
Log:
Add logging to SBProcess::GetRestartedFromEvent
Modified:
lldb/trunk/source/API/SBProcess.cpp
Modified: lldb/trunk/source/API/SBProcess.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBProcess.cpp?rev=256853&r1=256852&r2=256853&view=diff
==============================================================================
--- lldb/trunk/source/API/SBProcess.cpp (original)
+++ lldb/trunk/source/API/SBProcess.cpp Tue Jan 5 11:55:35 2016
@@ -995,7 +995,14 @@ SBProcess::GetStateFromEvent (const SBEv
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
More information about the lldb-commits
mailing list