예제 #1
0
void
CliContext::DebugReportChanged(const Team::DebugReportEvent& event)
{
	if (event.GetFinalStatus() == B_OK) {
		printf("Successfully saved debug report to %s\n",
			event.GetReportPath());
	} else {
		fprintf(stderr, "Failed to write debug report: %s\n", strerror(
				event.GetFinalStatus()));
	}

	_QueueEvent(new(std::nothrow) Event(EVENT_DEBUG_REPORT_CHANGED));
	_SignalInputLoop(EVENT_DEBUG_REPORT_CHANGED);
}
예제 #2
0
파일: TeamWindow.cpp 프로젝트: DonCN/haiku
void
TeamWindow::DebugReportChanged(const Team::DebugReportEvent& event)
{
	BMessage message(MSG_DEBUG_REPORT_SAVED);
	message.AddString("path", event.GetReportPath());
	PostMessage(&message);
}
예제 #3
0
void
CommandLineUserInterface::DebugReportChanged(
	const Team::DebugReportEvent& event)
{
	printf("Successfully saved debug report to %s\n",
		event.GetReportPath());

	if (fSaveReport) {
		fContext.QuitSession(true);
		// Release the Show() semaphore to signal Terminate().
		release_sem(fShowSemaphore);
	}
}