Bagikan melalui


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.

Komputer Target

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. Jika target hanya menggunakan alamat 32-bit, mesin secara otomatis mengonversinya saat berkomunikasi dengan target.

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

Ada tiga jenis prosesor berbeda yang terkait dengan komputer target:

  • Jenis prosesor aktual adalah jenis prosesor fisik di komputer target. This is returned by GetActualProcessorType.

  • Jenis prosesor yang dijalankan adalah jenis prosesor yang digunakan dalam konteks prosesor yang sedang dijalankan. This is returned by GetExecutingProcessorType.

  • Jenis prosesor yang efektif adalah jenis prosesor yang digunakan debugger saat menginterpretasikan informasi dari target -- misalnya, mengatur titik henti, mengakses register, dan mendapatkan jejak tumpukan. The effective processor type is returned by GetEffectiveProcessorType and can be changed using SetEffectiveProcessorType.

Jenis prosesor yang efektif dan jenis prosesor eksekusi mungkin berbeda dari jenis prosesor aktual -- misalnya, ketika prosesor fisik adalah prosesor x64 dan berjalan dalam mode 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. Informasi waktu mungkin tidak tersedia untuk semua target.

Versi Target

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.