MCPcopy Create free account
hub / github.com/Vector35/debugger / GetTargetArchitecture

Method GetTargetArchitecture

core/adapters/dbgengadapter.cpp:1162–1181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1160}
1161
1162std::string DbgEngAdapter::GetTargetArchitecture()
1163{
1164 if (!m_debugControl)
1165 return "";
1166
1167 unsigned long processor_type {};
1168
1169 if (this->m_debugControl->GetExecutingProcessorType(&processor_type) != S_OK)
1170 return "";
1171
1172 switch (processor_type)
1173 {
1174 case IMAGE_FILE_MACHINE_I386:
1175 return "x86";
1176 case IMAGE_FILE_MACHINE_AMD64:
1177 return "x86_64";
1178 default:
1179 return "";
1180 }
1181}
1182
1183DebugStopReason DbgEngAdapter::StopReason()
1184{

Callers 1

StopReasonMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected