次の方法で共有


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.

ターゲットのコンピューターには、次の 3 種類のプロセッサが関連付けられています。

  • 実際のプロセッサの種類は、ターゲットのコンピューター内の物理プロセッサの種類です。 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.