Debug driver with windbg

 
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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章