Debug driver with windbg (1)
2008-01-26 00:34
转载
- 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.
- connect the 1394 cable
- set symbol file path in windbg: SRV*C:/WINDOWS/Symbols*http://msdl.microsoft.com/download/symbols
- set driver source file path
- set image file path, like: xxx/objchk_wxp_x86/i386
- open source file
- set kernel debug->1394, channel=44, click OK to start.
- 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)
- run.
Other useful links: http://hi.baidu.com/yach/blog/item/3d6c3b292c2732fc98250a2c.html |