mingw崩溃日志分析。
This commit is contained in:
25
dumpDemo/crashdump.h
Normal file
25
dumpDemo/crashdump.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef CRASHDUMP_H
|
||||
#define CRASHDUMP_H
|
||||
|
||||
#include <comdef.h>
|
||||
#include <string>
|
||||
#include <tlhelp32.h>
|
||||
#include <wbemidl.h>
|
||||
#include <windows.h>
|
||||
|
||||
class CrashDump
|
||||
{
|
||||
public:
|
||||
CrashDump(EXCEPTION_POINTERS* exp);
|
||||
|
||||
public:
|
||||
std::string GetModuleByReAddr(PBYTE retAddr, PBYTE& moduleAddr);
|
||||
std::string GetVersion();
|
||||
std::string GetExceptionInfo();
|
||||
std::string GetCallStack(EXCEPTION_POINTERS* exp);
|
||||
|
||||
private:
|
||||
EXCEPTION_POINTERS* exp_{};
|
||||
};
|
||||
|
||||
#endif // CRASHDUMP_H
|
||||
Reference in New Issue
Block a user