TrinityCore
WheatyExceptionReport.cpp File Reference
#include "WheatyExceptionReport.h"
#include "Errors.h"
#include "GitRevision.h"
#include <algorithm>
#include <ehdata.h>
#include <rttidata.h>
#include <tlhelp32.h>
#include <tchar.h>
#include <comdef.h>
#include <WbemIdl.h>
+ Include dependency graph for WheatyExceptionReport.cpp:

Go to the source code of this file.

Classes

struct  CSymbolInfoPackage
 

Macros

#define CrashFolder   _T("Crashes")
 
#define EXCEPTION(x)   case EXCEPTION_##x: return _T(#x);
 
#define REG_L(x)   ((BYTE)(((DWORD_PTR)(x)) & 0xff))
 
#define REG_H(x)   ((BYTE)((((DWORD_PTR)(x)) >> 8) & 0xff))
 
#define REG_X(x)   ((WORD)(((DWORD_PTR)(x)) & 0xffff))
 
#define REG_E(x)   ((DWORD)(((DWORD_PTR)(x)) & 0xffffffff))
 
#define REG_R(x)   ((DWORD64)(((DWORD_PTR)(x)) & 0xffffffffffffffff))
 
#define CPU_REG(reg, field, part)   case reg: return part(context->field);
 

Functions

LPTSTR ErrorMessage (DWORD dw)
 
template<size_t size>
void ToTchar (wchar_t const *src, TCHAR(&dst)[size])
 

Variables

WheatyExceptionReport g_WheatyExceptionReport
 

Macro Definition Documentation

◆ CPU_REG

#define CPU_REG (   reg,
  field,
  part 
)    case reg: return part(context->field);

◆ CrashFolder

#define CrashFolder   _T("Crashes")

Definition at line 24 of file WheatyExceptionReport.cpp.

◆ EXCEPTION

#define EXCEPTION (   x)    case EXCEPTION_##x: return _T(#x);

◆ REG_E

#define REG_E (   x)    ((DWORD)(((DWORD_PTR)(x)) & 0xffffffff))

◆ REG_H

#define REG_H (   x)    ((BYTE)((((DWORD_PTR)(x)) >> 8) & 0xff))

◆ REG_L

#define REG_L (   x)    ((BYTE)(((DWORD_PTR)(x)) & 0xff))

◆ REG_R

#define REG_R (   x)    ((DWORD64)(((DWORD_PTR)(x)) & 0xffffffffffffffff))

◆ REG_X

#define REG_X (   x)    ((WORD)(((DWORD_PTR)(x)) & 0xffff))

Function Documentation

◆ ErrorMessage()

LPTSTR ErrorMessage ( DWORD  dw)
inline

Definition at line 28 of file WheatyExceptionReport.cpp.

+ Here is the caller graph for this function:

◆ ToTchar()

template<size_t size>
void ToTchar ( wchar_t const *  src,
TCHAR(&)  dst[size] 
)

Definition at line 226 of file WheatyExceptionReport.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ g_WheatyExceptionReport

WheatyExceptionReport g_WheatyExceptionReport

Definition at line 72 of file WheatyExceptionReport.cpp.