Debug driver with windbg

来源:互联网 发布:阿里云学生认证错误 编辑:程序博客网 时间:2024/05/29 07:29
 
Debug driver with windbg (1)
2008-01-26 00:34

转载

  1. edit target pc's boot.ini: multi(0)disk(0)rdisk(0)partition(1)/WINDOWS="Microsoft Windows XP Professional" /fastdetect /debug /debugport=1394 /channel=44

    you can select your own channel number.
  2. connect the 1394 cable
  3. set symbol file path in windbg: SRV*C:/WINDOWS/Symbols*http://msdl.microsoft.com/download/symbols
  4. set driver source file path
  5. set image file path, like: xxx/objchk_wxp_x86/i386
  6. open source file
  7. set kernel debug->1394, channel=44, click OK to start.
  8. set your breakpoint in source file. if your image has not been loaded yet, use bu yourdriver!routine to set an unresolved breakpoint. (my comments: press F9 to set, select NO if a popup window shows)
  9. run.

Other useful links:

http://hi.baidu.com/yach/blog/item/3d6c3b292c2732fc98250a2c.html

原创粉丝点击