Target Information

The method GetDebuggeeType returns the nature of the current target (for example, whether it is a kernel-mode or user-mode target), and how the debugger engine is connected to it.

If the target is a crash dump file, the method GetDumpFormatFlags will indicate what information is contained in the dump.

目标的计算机

The page size of the target's computer is returned by GetPageSize. IsPointer64Bit will indicate if the computer uses 32-bit or 64-bit addresses.

Note Internally, the debugger engine always uses 64-bit addresses for the target. 如果目标仅使用 32 位地址,则引擎在与目标通信时自动转换它们。

The number of processors in the target's computer is returned by GetNumberProcessors.

有三种不同的处理器类型与目标的计算机相关联:

  • 实际处理器类型是目标计算机中物理处理器的类型。 This is returned by GetActualProcessorType.

  • 正在执行的处理器类型是当前正在执行的处理器上下文中使用的处理器类型。 This is returned by GetExecutingProcessorType.

  • 有效的处理器类型是调试器在解释目标信息时使用的处理器类型-例如,设置断点、访问寄存器和获取堆栈跟踪。 The effective processor type is returned by GetEffectiveProcessorType and can be changed using SetEffectiveProcessorType.

有效的处理器类型和执行处理器类型可能与实际处理器类型不同,例如,当物理处理器是 x64 处理器且它在 x86 模式下运行时。

The different executing processor types that are supported by the physical processor on the target's computer are returned by GetPossibleExecutingProcessorTypes. The number of these is returned by GetNumberPossibleExecutingProcessorTypes.

The list of processor types that is supported by the debugger engine is returned by GetSupportedProcessorTypes. The number of supported processor types is returned by GetNumberSupportedProcessorTypes.

The names (full and abbreviated) of a processor type are returned by GetProcessorTypeNames.

The current time on the target's computer is returned by GetCurrentTimeDate. The length of time the target's computer has been running since the last boot is returned by GetCurrentSystemUpTime. 时间信息可能不适用于所有目标。

目标版本

The Windows version running on the target's computer is returned by GetSystemVersionValues and the Request operation DEBUG_REQUEST_GET_WIN32_MAJOR_MINOR_VERSIONS, and a description of the Windows version is returned by GetSystemVersionString. Some of this information is also returned by GetSystemVersion.