Window dbg

crash_analyze.bat

REM "Put windbg utilties path"
set PATH=$PATH;C:\"Program Files (x86)"\"Debugging Tools for Windows (x86)"

REM "Set the expected exe binary file"
set IMGPATH=%1

REM "Set pdb files path"
set SYMBOLPATH=%2;srv*D:\crash*http://msdl.microsoft.com/download/symbols

REM "Set source files path"
set SRCPATH=%3

REM "Set the expected analyzing crash dmp file"
set DMPFILE=%4

REM "Set output log file"
set LOGFILE=%5

cdb.exe -z %DMPFILE% -logo %LOGFILE% -lines -c ".reload;!analyze -v;q" -i %IMGPATH% -y %SYMBOLPATH% -srcpath %SRCPATH%

pause

find_crash.bat

dir *.dmp | findstr "dmp" | sed -n "$s/.*\(crash.*\)/crash_analyze.bat E:\\GMX_release\\ver20190807\\bin E:\\GMX_release\\ver20190807\\pdb E:\\GMX_release\\ver20190807\\src \1 \1.log/gp" > do.bat
do.bat

sed.exe

depends

libiconv2.dll libintl3.dll regex2.dll

你可能感兴趣的:(Window dbg)