| 1160 | } |
| 1161 | |
| 1162 | std::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 | |
| 1183 | DebugStopReason DbgEngAdapter::StopReason() |
| 1184 | { |