当前位置: 代码迷 >> 综合 >> Debug driver with windbg
  详细解决方案

Debug driver with windbg

热度:11   发布时间:2024-01-06 09:44:39.0
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

  相关解决方案