123456

 

windbg script ---- 显示文件头:

使用!dh命令:

文本如下:

.if(${/d:$arg1})
{
   .printf /D  "\nYou selected the module:<link cmd =\"!dh ${$arg1} -a\"> <b>${$arg1}</b></link>\n"
}
.else
{
   .printf /D "\n<b>Select option below for loaded modules:</b>\n"
   .foreach(obj {lm1m})
   {
     .block
     {
        .printf /D  "\nthe module header information:<link cmd =\"!dh ${obj} -a\"> <b>${obj}</b></link>\n"
     }
   }
}

运行结果:


posted on 2013-07-15 16:22  hgy413  阅读(150)  评论(0编辑  收藏  举报

导航