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

posted @ 2019-08-08 09:33  Reboost  阅读(241)  评论(0编辑  收藏  举报