From 1ec7de1b5760b5fc1ebda1d244784e3bc4596eb1 Mon Sep 17 00:00:00 2001 From: "Andrew A. de Laix" Date: Tue, 29 Jun 2010 14:51:26 -0700 Subject: Generate windows minidump files on crash for developer (not release for download) builds. SL crash reporter still enabled. --- indra/newview/llwindebug.h | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 indra/newview/llwindebug.h (limited to 'indra/newview/llwindebug.h') diff --git a/indra/newview/llwindebug.h b/indra/newview/llwindebug.h new file mode 100644 index 0000000000..809d1b8cc3 --- /dev/null +++ b/indra/newview/llwindebug.h @@ -0,0 +1,49 @@ +/** + * @file llwindebug.h + * @brief LLWinDebug class header file + * + * $LicenseInfo:firstyear=2004&license=viewergpl$ + * + * Copyright (c) 2004-2009, 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://secondlifegrid.net/programs/open_source/licensing/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://secondlifegrid.net/programs/open_source/licensing/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$ + */ + +#ifndef LL_LLWINDEBUG_H +#define LL_LLWINDEBUG_H + +#include "stdtypes.h" +#include + +class LLWinDebug: + public LLSingleton +{ +public: + static void init(); + static void generateMinidump(struct _EXCEPTION_POINTERS *pExceptionInfo = NULL); +private: + static void writeDumpToFile(MINIDUMP_TYPE type, MINIDUMP_EXCEPTION_INFORMATION *ExInfop, const std::string& filename); +}; + +#endif // LL_LLWINDEBUG_H -- cgit v1.2.3 From f78ef036eb429a5ac4f0ebb20aad61470a9e0698 Mon Sep 17 00:00:00 2001 From: "Andrew A. de Laix" Date: Wed, 30 Jun 2010 15:27:09 -0700 Subject: Add header that seems to be needed for teamcity builds. --- indra/newview/llwindebug.h | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview/llwindebug.h') diff --git a/indra/newview/llwindebug.h b/indra/newview/llwindebug.h index 809d1b8cc3..c06151583a 100644 --- a/indra/newview/llwindebug.h +++ b/indra/newview/llwindebug.h @@ -33,6 +33,7 @@ #ifndef LL_LLWINDEBUG_H #define LL_LLWINDEBUG_H +#include #include "stdtypes.h" #include -- cgit v1.2.3 From 077f59fe1e138d3b382650650d8e944cfe217174 Mon Sep 17 00:00:00 2001 From: brad kittenbrink Date: Wed, 30 Jun 2010 17:32:05 -0700 Subject: Backed out changeset dca182757a90 (windows.h addtion to attempt to fix build breakage) --- indra/newview/llwindebug.h | 1 - 1 file changed, 1 deletion(-) (limited to 'indra/newview/llwindebug.h') diff --git a/indra/newview/llwindebug.h b/indra/newview/llwindebug.h index c06151583a..809d1b8cc3 100644 --- a/indra/newview/llwindebug.h +++ b/indra/newview/llwindebug.h @@ -33,7 +33,6 @@ #ifndef LL_LLWINDEBUG_H #define LL_LLWINDEBUG_H -#include #include "stdtypes.h" #include -- cgit v1.2.3