MCPcopy Create free account
hub / github.com/beefytech/Beef / GetTargetBitCount

Method GetTargetBitCount

IDEHelper/DbgMiniDump.cpp:59–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59int DbgMiniDump::GetTargetBitCount()
60{
61 for (auto& dirEntry : mDirectory)
62 {
63 if (dirEntry.mStreamType == DbgMiniDumpStreamType_SystemInfo)
64 {
65 MINIDUMP_SYSTEM_INFO& sysInfo = *(MINIDUMP_SYSTEM_INFO*)((uint8*)mMF.mData + dirEntry.mDataRVA);
66 if ((sysInfo.ProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64) || (sysInfo.ProcessorArchitecture == PROCESSOR_ARCHITECTURE_IA64))
67 return 64;
68 if (sysInfo.ProcessorArchitecture == PROCESSOR_ARCHITECTURE_INTEL)
69 return 32;
70 return 0;
71 }
72 }
73
74 return 0;
75}

Callers 1

Debugger_OpenMiniDumpFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected