Wednesday, December 9, 2009

Windows XP的minidump

留个记录,以后修机器好用,呵呵
1. Configure the dump type
To configure startup and recovery options to use the small memory dump file, follow these steps.

Note Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.
a. Click Start, point to Settings, and then click Control Panel.
b. Double-click System.
c. Click the Advanced tab, and then click Settings under Startup and Recovery.
d. In the Write debugging information list, click Small memory dump (64k).

To change the folder location for the small memory dump files, type a new path in the Dump File box (or in the Small dump directory box, depending on your version of Windows). The default location for the dump files is c:/windows/minidump.

2. download Debugging Tools for Windows at http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx#a
3. download Windows Symbol Packages at http://www.microsoft.com/whdc/devtools/debugging/symbolpkg.mspx#d
4. run symbol packages to unpack it to c:\windows\symbols
5. install debugging tools.

6. Locate your latest memory.dmp file- C:\WINDOWS\ Minidump\Mini081505-01.dmp or whatever
7. open a CMD prompt and cd C:\program files\debugging tools for windows (x86)
8. type the following stuff:
Code:
c:\program files\debugging tools>kd -z C:\WINDOWS\Minidump\Mini081505-01.dmp
(it will spew a bunch)
kd>.logopen c:\debuglog.txt
kd>.sympath srv*c:\WINDOWS\Symbols*http://msdl.microsoft.com/download/symbols
kd>.reload;!analyze -v;r;kv;lmnt;.logclose
kd>q

No comments:

Post a Comment