| 871 | } |
| 872 | |
| 873 | BF_EXPORT bool BF_CALLTYPE Debugger_OpenMiniDump(const char* fileName) |
| 874 | { |
| 875 | #ifdef BF_PLATFORM_WINDOWS |
| 876 | DbgMiniDump* dbgMiniDump = new DbgMiniDump(); |
| 877 | bool result = dbgMiniDump->StartLoad(fileName); |
| 878 | if (!result) |
| 879 | { |
| 880 | delete dbgMiniDump; |
| 881 | return false; |
| 882 | } |
| 883 | |
| 884 | if (dbgMiniDump->GetTargetBitCount() == 32) |
| 885 | gDebugger = CreateDebugger32(gDebugManager, dbgMiniDump); |
| 886 | else |
| 887 | gDebugger = CreateDebugger64(gDebugManager, dbgMiniDump); |
| 888 | |
| 889 | return result; |
| 890 | #else //BF_PLATFORM_WINDOWS |
| 891 | return false; |
| 892 | #endif |
| 893 | } |
| 894 | |
| 895 | BF_EXPORT bool BF_CALLTYPE Debugger_Attach(int processId, BfDbgAttachFlags attachFlags) |
| 896 | { |
nothing calls this directly
no test coverage detected