次の方法で共有


Dump-File Targets

クラッシュ ダンプ ファイルの概要と概要については、「 クラッシュ ダンプ ファイル」を参照してください。

ダンプ ファイルを開く

To open a crash dump file for use as a debugger target, use OpenDumpFile or OpenDumpfileWide. These methods are similar to the .opendump debugger command.

Note The engine doesn't completely attach to the dump file until the WaitForEvent method has been called. プロセスまたはカーネルからダンプ ファイルが作成されると、最後のイベントに関する情報がダンプ ファイルに格納されます。 ダンプ ファイルが開かれた後、次回の実行が試行されると、エンジンによってイベント コールバックに対してこのイベントが生成されます。 その場合にのみ、デバッグ セッションでダンプ ファイルが使用できるようになります。 詳細については、「 セッションと実行モデルのデバッグ 」を参照してください。

クラッシュ ダンプ ファイルのデバッグに役立つ追加のファイルを使用できます。 The methods AddDumpInformationFile and AddDumpInformationFileWide register files containing page-file information to be used when the next dump file is opened. ダンプ ファイルを開く前に、これらのメソッドを呼び出す必要があります。 GetNumberDumpFiles will return the number of such files that were used when the current dump file was opened and GetDumpFile will return a description of these files.

ユーザー モードのミニダンプ ファイルには、いくつかの情報ストリームが含まれています。 These streams can be read using the Request operation DEBUG_REQUEST_READ_USER_MINIDUMP_STREAM.

ダンプ ファイルの作成

To create a crash dump file of the current target -- user-mode or kernel-mode -- use WriteDumpFile2. This method is similar to the .dump debugger command.