Lines Matching refs:log

14 #include "lldb/lldb-private-log.h"
669 Log *log,
688 if (log && (error.Fail() || log))
689 error.PutToLog(log, "posix_spawn_file_actions_addclose (action=%p, fd=%i)",
703 if (log && (error.Fail() || log))
704 error.PutToLog(log, "posix_spawn_file_actions_adddup2 (action=%p, fd=%i, dup_fd=%i)",
727 if (error.Fail() || log)
728 error.PutToLog(log,
1045 Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_OBJECT));
1046 if (log)
1047 log->Printf ("%p Process::Process()", this);
1081 Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_OBJECT));
1082 if (log)
1083 log->Printf ("%p Process::~Process()", this);
1329 Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_PROCESS));
1331 if (log)
1332 log->Printf ("Process::%s (timeout = %p, event_sp)...", __FUNCTION__, timeout);
1342 else if (log)
1343 log->Printf ("Process::%s got no event or was interrupted.", __FUNCTION__);
1346 if (log)
1347 log->Printf ("Process::%s (timeout = %p, event_sp) => %s",
1357 Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_PROCESS));
1359 if (log)
1360 log->Printf ("Process::%s...", __FUNCTION__);
1365 if (log)
1369 log->Printf ("Process::%s (event_ptr) => %s",
1375 log->Printf ("Process::%s no events found",
1385 Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_PROCESS));
1387 if (log)
1388 log->Printf ("Process::%s (timeout = %p, event_sp)...", __FUNCTION__, timeout);
1399 // to the command-line, and that could disable the log, which would render the
1400 // log we got above invalid.
1401 if (log)
1404 log->Printf ("Process::%s (timeout = %p, event_sp) => TIMEOUT", __FUNCTION__, timeout);
1406 log->Printf ("Process::%s (timeout = %p, event_sp) => %s", __FUNCTION__, timeout, StateAsCString(state));
1414 Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_PROCESS));
1416 if (log)
1417 log->Printf ("Process::%s (timeout = %p, event_sp)...", __FUNCTION__, timeout);
1451 Log *log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_STATE | LIBLLDB_LOG_PROCESS));
1452 if (log)
1453 log->Printf("Process::SetExitStatus (status=%i (0x%8.8x), description=%s%s%s)",
1462 if (log)
1463 log->Printf("Process::SetExitStatus () ignoring exit status because state was already set to eStateExited");
1491 Log *log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_PROCESS));
1492 if (log)
1493 log->Printf ("Process::SetProcessExitStatus (baton=%p, pid=%" PRIu64 ", exited=%i, signal=%i, exit_status=%i)\n",
1632 Log *log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_STATE | LIBLLDB_LOG_PROCESS));
1633 if (log)
1634 log->Printf("Process::SetPublicState (state = %s, restarted = %i)", StateAsCString(new_state), restarted);
1645 if (log)
1646 log->Printf("Process::SetPublicState (%s) -- unlocking run lock for detach", StateAsCString(new_state));
1657 if (log)
1658 log->Printf("Process::SetPublicState (%s) -- unlocking run lock", StateAsCString(new_state));
1669 Log *log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_STATE | LIBLLDB_LOG_PROCESS));
1670 if (log)
1671 log->Printf("Process::Resume -- locking run lock");
1675 if (log)
1676 log->Printf ("Process::Resume: -- TrySetRunning failed, not resuming.");
1691 Log *log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_STATE | LIBLLDB_LOG_PROCESS));
1694 if (log)
1695 log->Printf("Process::SetPrivateState (%s)", StateAsCString(new_state));
1733 if (log)
1734 log->Printf("Process::SetPrivateState (%s) stop_id = %u", StateAsCString(new_state), m_mod_id.GetStopID());
1744 if (log)
1745 log->Printf("Process::SetPrivateState (%s) state didn't change. Ignoring...", StateAsCString(new_state));
2146 Log *log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_BREAKPOINTS));
2148 if (log)
2149 log->Printf ("Process::EnableSoftwareBreakpoint (site_id = %d) addr = 0x%" PRIx64, bp_site->GetID(), (uint64_t)bp_addr);
2152 if (log)
2153 log->Printf ("Process::EnableSoftwareBreakpoint (site_id = %d) addr = 0x%" PRIx64 " -- already enabled", bp_site->GetID(), (uint64_t)bp_addr);
2193 if (log)
2194 log->Printf ("Process::EnableSoftwareBreakpoint (site_id = %d) addr = 0x%" PRIx64 " -- SUCCESS",
2210 if (log && error.Fail())
2211 log->Printf ("Process::EnableSoftwareBreakpoint (site_id = %d) addr = 0x%" PRIx64 " -- FAILED: %s",
2223 Log *log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_BREAKPOINTS));
2226 if (log)
2227 log->Printf ("Process::DisableSoftwareBreakpoint (breakID = %" PRIu64 ") addr = 0x%" PRIx64, breakID, (uint64_t)bp_addr);
2280 if (log)
2281 log->Printf ("Process::DisableSoftwareBreakpoint (site_id = %d) addr = 0x%" PRIx64 " -- SUCCESS", bp_site->GetID(), (uint64_t)bp_addr);
2300 if (log)
2301 log->Printf ("Process::DisableSoftwareBreakpoint (site_id = %d) addr = 0x%" PRIx64 " -- already disabled", bp_site->GetID(), (uint64_t)bp_addr);
2305 if (log)
2306 log->Printf ("Process::DisableSoftwareBreakpoint (site_id = %d) addr = 0x%" PRIx64 " -- FAILED: %s",
2723 Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_PROCESS));
2724 if (log)
2725 log->Printf("Process::AllocateMemory(size=%4zu, permissions=%s) => 0x%16.16" PRIx64 " (m_stop_id = %u m_memory_id = %u)",
2775 Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_PROCESS));
2776 if (log)
2777 log->Printf("Process::DeallocateMemory(addr=0x%16.16" PRIx64 ") => err = %s (m_stop_id = %u, m_memory_id = %u)",
3274 Log *log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_PROCESS|LIBLLDB_LOG_STEP));
3275 if (log)
3276 log->Printf("Process::PrivateResume() m_stop_id = %u, public state: %s private state: %s",
3308 if (log)
3309 log->Printf ("Process thinks the process has resumed.");
3317 if (log)
3318 log->Printf ("Process::PrivateResume() asked to simulate a start & stop.");
3324 else if (log)
3325 log->Printf ("Process::PrivateResume() got an error \"%s\".", error.AsCString("<unknown error>"));
3397 Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_PROCESS));
3398 if (log)
3399 log->Printf("Process::Halt() failed to stop, state is: %s", StateAsCString(state));
3427 Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_PROCESS));
3428 if (log)
3429 log->Printf("Process::Destroy() About to halt.");
3444 if (log)
3445 log->Printf("Process::HaltForDestroyOrDetach() Process exited while waiting to Halt.");
3453 if (log)
3454 log->Printf("Process::HaltForDestroyOrDetach() Halt failed to stop, state is: %s", StateAsCString(state));
3466 if (log)
3467 log->Printf("Process::HaltForDestroyOrDetach() Halt got error: %s", error.AsCString());
3624 Log *log(lldb_private::GetLogIfAnyCategoriesSet(LIBLLDB_LOG_EVENTS | LIBLLDB_LOG_PROCESS));
3691 if (log)
3692 log->Printf ("Process::ShouldBroadcastEvent (%p) stopped due to an interrupt, state: %s",
3712 if (log)
3713 log->Printf ("Process::ShouldBroadcastEvent: should_stop: %i state: %s was_restarted: %i stop_vote: %d.",
3732 if (log)
3733 log->Printf ("Process::ShouldBroadcastEvent (%p) Restarting process from state: %s", event_ptr, StateAsCString(state));
3759 if (log)
3760 log->Printf ("Process::ShouldBroadcastEvent (%p) => new state: %s, last broadcast state: %s - %s",
3772 Log *log(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_EVENTS));
3775 if (log)
3776 log->Printf ("Process::%s()%s ", __FUNCTION__, already_running ? " already running" : " starting private state thread");
3820 Log *log(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_PROCESS));
3821 if (log)
3822 log->Printf ("Went to stop the private state thread, but it was already invalid.");
3829 Log *log(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_PROCESS));
3835 if (log)
3836 log->Printf ("Process::%s (signal = %d)", __FUNCTION__, signal);
3851 if (log)
3852 log->Printf ("Sending control event of type: %d.", signal);
3862 if (log)
3863 log->Printf ("Timed out responding to the control event, cancel got error: \"%s\".", error.AsCString());
3867 if (log)
3868 log->Printf ("The control event killed the private state thread without having to cancel.");
3878 if (log)
3879 log->Printf ("Private state thread already dead, no need to signal it to stop.");
3895 Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_PROCESS));
3906 if (log)
3907 log->Printf ("Ran next event action, result was %d.", action_result);
3940 if (log)
3942 log->Printf ("Process::%s (pid = %" PRIu64 ") broadcasting new state %s (old state %s) to %s",
3959 if (log)
3961 log->Printf ("Process::%s (pid = %" PRIu64 ") suppressing state %s (old state %s): should_broadcast == false",
3985 Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_PROCESS));
3986 if (log)
3987 log->Printf ("Process::%s (arg = %p, pid = %" PRIu64 ") thread starting...", __FUNCTION__, this, GetID());
3996 if (log)
3997 log->Printf ("Process::%s (arg = %p, pid = %" PRIu64 ") got a control event: %d", __FUNCTION__, this, GetID(), event_sp->GetType());
4021 if (log)
4022 log->Printf ("Process::%s (arg = %p, pid = %" PRIu64 ") woke up with an interrupt while attaching - forwarding interrupt.", __FUNCTION__, this, GetID());
4027 if (log)
4028 log->Printf ("Process::%s (arg = %p, pid = %" PRIu64 ") woke up with an interrupt - Halting.", __FUNCTION__, this, GetID());
4051 if (log)
4052 log->Printf ("Process::%s (arg = %p, pid = %" PRIu64 ") about to exit with internal state %s...", __FUNCTION__, this, GetID(), StateAsCString(internal_state));
4058 // Verify log is still enabled before attempting to write to it...
4059 if (log)
4060 log->Printf ("Process::%s (arg = %p, pid = %" PRIu64 ") thread exiting...", __FUNCTION__, this, GetID());
4159 Log *log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_STEP | LIBLLDB_LOG_PROCESS));
4160 if (log)
4161 log->Printf("Number of threads changed from %u to %u while processing event.", num_threads, curr_thread_list.GetSize());
4169 Log *log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_STEP | LIBLLDB_LOG_PROCESS));
4170 if (log)
4171 log->Printf("The thread at position %u changed from %u to %u while processing event.",
4418 Log *log (lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_PROCESS));
4419 if (log)
4420 log->Printf ("Process::GetProfileData (buf = %p, size = %" PRIu64 ")", buf, (uint64_t)buf_size);
4448 Log *log (lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_PROCESS));
4449 if (log)
4450 log->Printf ("Process::GetSTDOUT (buf = %p, size = %" PRIu64 ")", buf, (uint64_t)buf_size);
4474 Log *log (lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_PROCESS));
4475 if (log)
4476 log->Printf ("Process::GetSTDERR (buf = %p, size = %" PRIu64 ")", buf, (uint64_t)buf_size);
4729 Log *log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_STEP | LIBLLDB_LOG_PROCESS));
4736 if (log)
4737 log->Printf ("Running thread plan on private state thread, spinning up another state thread to handle the events.");
4773 if (log)
4777 log->Printf ("Process::RunThreadPlan(): Resuming thread %u - 0x%4.4" PRIx64 " to run thread plan \"%s\".",
4830 if (log)
4831 log->Printf ("Top of while loop: do_resume: %i handle_running_event: %i before_first_timeout: %i.",
4860 if (log)
4861 log->Printf ("Process::RunThreadPlan(): didn't get any event after resume %d, exiting.",
4878 if (log)
4879 log->Printf("Process::RunThreadPlan(): didn't get running event after "
4901 if (log)
4902 log->PutCString ("Process::RunThreadPlan(): resuming succeeded.");
4911 if (log)
4912 log->PutCString ("Process::RunThreadPlan(): waiting for next event.");
4941 if (log)
4945 log->Printf ("Process::RunThreadPlan(): about to wait - now is %" PRIu64 " - endpoint is %" PRIu64,
4951 log->Printf ("Process::RunThreadPlan(): about to wait forever.");
4967 if (log)
4968 log->Printf ("Process::RunThreadPlan(): Got interrupted by eBroadcastBitInterrupted, exiting.");
4974 if (log)
4975 log->Printf("Process::RunThreadPlan(): in while loop, got event: %s.", StateAsCString(stop_state));
4986 if (log)
4987 log->Printf ("Process::RunThreadPlan(): execution completed but our thread (index-id=%u) has vanished.", thread_idx_id);
4995 if (log)
4997 log->Printf ("Process::RunThreadPlan(): Got a stop and restart, so we'll continue waiting.");
5017 if (log)
5018 log->PutCString ("Process::RunThreadPlan(): execution completed successfully.");
5030 if (log)
5031 log->Printf ("Process::RunThreadPlan() stopped for breakpoint: %s.", stop_info_sp->GetDescription());
5040 if (log)
5041 log->PutCString ("Process::RunThreadPlan(): thread plan didn't successfully complete.");
5061 if (log)
5062 log->Printf("Process::RunThreadPlan(): execution stopped with unexpected state: %s.", StateAsCString(stop_state));
5080 if (log)
5081 log->PutCString ("Process::RunThreadPlan(): got_event was true, but the event pointer was null. How odd...");
5092 if (log) {
5097 log->Printf ("Process::RunThreadPlan(): Running function with one thread timeout timed out, "
5101 log->Printf ("Process::RunThreadPlan(): Restarting function with all threads enabled "
5106 log->Printf ("Process::RunThreadPlan(): Running function with timeout: %d timed out, "
5126 if (log)
5127 log->Printf ("Process::RunThreadPlan(): Running Halt.");
5132 if (log)
5133 log->PutCString ("Process::RunThreadPlan(): Halt succeeded.");
5143 if (log)
5145 log->Printf ("Process::RunThreadPlan(): Stopped with event: %s", StateAsCString(stop_state));
5148 log->PutCString (" Event was the Halt interruption event.");
5158 if (log)
5159 log->PutCString ("Process::RunThreadPlan(): Even though we timed out, the call plan was done. "
5168 if (log)
5169 log->PutCString ("Process::RunThreadPlan(): Went to halt but got a restarted event, there must be an un-restarted stopped event so try again... "
5178 if (log)
5179 log->PutCString ("Process::RunThreadPlan(): try_all_threads was false, we stopped so now we're quitting.");
5190 if (log)
5191 log->PutCString ("Process::RunThreadPlan(): about to resume.");
5199 if (log)
5200 log->PutCString("Process::RunThreadPlan(): running all threads timed out.");
5208 { if (log)
5209 log->PutCString("Process::RunThreadPlan(): halt said it succeeded, but I got no event. "
5261 if (log)
5268 log->PutCString ("Process::RunThreadPlan(): Stop event that interrupted us is NULL.");
5347 log->Printf("Process::RunThreadPlan(): execution interrupted: %s %s", s.GetData(), event_explanation);
5349 log->Printf("Process::RunThreadPlan(): execution interrupted: %s", s.GetData());
5354 if (log)
5355 log->Printf ("Process::RunThreadPlan: ExecutionInterrupted - discarding thread plans up to %p.", thread_plan_sp.get());
5361 if (log)
5362 log->Printf ("Process::RunThreadPlan: ExecutionInterrupted - for plan: %p not discarding.", thread_plan_sp.get());
5367 if (log)
5368 log->PutCString("Process::RunThreadPlan(): execution set up error.");
5380 if (log)
5381 log->PutCString("Process::RunThreadPlan(): thread plan is done");
5386 if (log)
5387 log->PutCString("Process::RunThreadPlan(): thread plan was discarded");
5392 if (log)
5393 log->PutCString("Process::RunThreadPlan(): thread plan stopped in mid course");
5396 if (log)
5397 log->PutCString("Process::RunThreadPlan(): discarding thread plan 'cause unwind_on_error is set.");
5433 if (log)
5434 log->PutCString("Process::RunThreadPlan(): rebroadcasting event.");