mingw崩溃日志分析。

This commit is contained in:
2026-03-23 16:42:28 +08:00
commit 079c27652d
12 changed files with 824 additions and 0 deletions

25
dumpDemo/crashdump.h Normal file
View 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