搜尋此網誌

2011年4月27日 星期三

How to trace your driver in windows XP/2003?

1. Edit at c:\boot.ini or others:\boot.ini
Please install WinDbg that is powerful to help trace your source code.


2. If you want to use com port, please add red parts as below:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=alwaysoff /fastdetect /debug /debugport=com1 /baudrate=115200


3. If you want to use 1394, please add as:
==>/debugport=1394 /channel=xxx    xxx is number that it must match with Windbg's setting.

4. Connect debugging platform to your computer with a RS232 or 1394 cable.


A(debugging platform)                            B(Your Computer)
PIN 2 <----------------------------------------------> PIN 3

PIN 3 <----------------------------------------------> PIN 2
PIN 5 <----------------------------------------------> PIN 5



5. Where can I get the Windbg?
Debugging Tools for Windows 32-bit Versions
Debugging Tools for Windows 64-bit Versions


6. Double clicks and install it.

7. Choose Symbol File Path.
(1).And set Symbol Path.
(2).Choose Sourcel File Path
(3).Set Source files Path.
(4).Choose Image File Path
(5).Set Executable Image Search Path.


8. Open your Windbg and choose "kernel debug".


   
9. Set Port and baudrate.
Or
10.After Click Ok, Windbg will connect with Windows Platform.





沒有留言:

張貼留言