#include "linden_common.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <curl/curl.h>
#include "indra_constants.h"
#include "llerror.h"
#include "lltimer.h"
#include "lldir.h"
#include "llstring.h"
Include dependency graph for linux_crash_logger.cpp:
Go to the source code of this file.
Classes | |
class | LLFileEncoder |
Functions | |
LLString | encode_string (const char *formname, const LLString &str) |
static size_t | curl_download_callback (void *data, size_t size, size_t nmemb, void *user_data) |
static BOOL | do_ask_dialog (void) |
int | main (int argc, char **argv) |
Variables | |
static const char | dialog_text [] |
static const char | dialog_title [] |
LLString | gServerResponse |
BOOL | gSendReport = FALSE |
LLString | gUserserver |
LLString | gUserText |
BOOL | gCrashInPreviousExec = FALSE |
time_t | gLaunchTime |
Copyright (c) 2003-2007, Linden Research, Inc.
Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2
There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception
By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.
ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$
Definition in file linux_crash_logger.cpp.
static size_t curl_download_callback | ( | void * | data, | |
size_t | size, | |||
size_t | nmemb, | |||
void * | user_data | |||
) | [static] |
Definition at line 91 of file linux_crash_logger.cpp.
References gServerResponse, i, and S32.
Referenced by main().
Definition at line 115 of file linux_crash_logger.cpp.
References dialog_text, dialog_title, FALSE, llendl, llinfos, and NULL.
Referenced by main().
Definition at line 551 of file linux_crash_logger.cpp.
Referenced by main(), and send_crash_report().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 152 of file linux_crash_logger.cpp.
References CRASH_BEHAVIOR_ALWAYS_SEND, CRASH_BEHAVIOR_ASK, curl_download_callback(), do_ask_dialog(), encode_string(), LLFileEncoder::encodeURL(), gCrashInPreviousExec, gDirUtilp, LLDir::getExpandedFilename(), gLaunchTime, gSendReport, gServerResponse, gUserserver, gUserText, i, LLDir::initAppDirs(), LLFileEncoder::isValid(), LL_MAX_PATH, LL_PATH_LOGS, LL_PATH_USER_SETTINGS, llendl, llinfos, LLFileEncoder::mBuf, NULL, S32, and TRUE.
const char dialog_text[] [static] |
Initial value:
"Second Life appears to have crashed.\n" "This crash reporter collects information about your computer's hardware, operating system, and some Second Life logs, which are used for debugging purposes only.\n" "\n" "This is a third party version of the Second Life viewer provided by Dale Glass.\n" "It is unsupported by Linden Lab, and reports crashes to daleglass.net.\n" "Please don't contact Linden Lab for support, IM Dale Glass or send email to\n" "dale@daleglass.net instead." "\n" "Send crash report?"
Definition at line 53 of file linux_crash_logger.cpp.
Referenced by do_ask_dialog().
const char dialog_title[] [static] |
Initial value:
"Second Life Crash Logger"
Definition at line 64 of file linux_crash_logger.cpp.
Referenced by do_ask_dialog().
BOOL gCrashInPreviousExec = FALSE |
Definition at line 88 of file linux_crash_logger.cpp.
Referenced by LLFileEncoder::LLFileEncoder(), main(), send_crash_report(), and WinMain().
time_t gLaunchTime |
Definition at line 89 of file linux_crash_logger.cpp.
Referenced by LLFileEncoder::LLFileEncoder(), and main().
BOOL gSendReport = FALSE |
Definition at line 84 of file linux_crash_logger.cpp.
Referenced by curl_download_callback(), and main().
Definition at line 86 of file linux_crash_logger.cpp.
Referenced by main(), send_crash_report(), and WinMain().
Definition at line 87 of file linux_crash_logger.cpp.
Referenced by dialogHandler(), main(), and send_crash_report().