阅读:2527回复:3
请问windbg的符号文件如何设置,谢谢
请问调试WDM驱动程序windbg的符号文件如何设置,谢谢
为什么将2,3针互换后还是不能用串口线将两台机器连起来(win2000),到底应如何连接,能不能用一台机器既做目标机又做主机,谢谢 |
|
最新喜欢:![]() |
沙发#
发布于:2002-04-16 20:37
建议使用SoftICE调试驱动程序吧!
|
|
|
板凳#
发布于:2002-04-17 12:56
SoftICE不是万能的。
windbg使用参见Art Baker的《Windows NT Device Driver Book》或者DDK文档。不是两台机器连起来就能用。等你看完了,试过了,不能用,再说。 |
|
地板#
发布于:2002-04-18 20:06
The following is the procedure of debugging a kernel driver named tviautl using WinDbg. Assume that:
Host system: Windows 2000 free build, COM1 Target system: Windows 200 free build, COM1 Baud rate: 38400 The procudures are: Connect the host to the target through a Null-modem cable. Test the connection and ensure the connection is correct. Add options “/debug /debugport=com1 /baudrate=38400” to the boot.ini File which exist in target system. Enabled kernal debug for the target system. The original file boot.ini: [boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(3)\\WINNT [operating systems] multi(0)disk(0)rdisk(0)partition(1)\\WINNT=\"Microsoft Windows 2000 Professional\" /fastdetect C:\\=\" Microsoft Windows 2000 \" The file boot.ini having added the options: [boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(3)\\WINNT [operating systems] multi(0)disk(0)rdisk(0)partition(1)\\WINNT=\"Microsoft Windows 2000 Professional\" /fastdetect /debug /debugport=com1 /baudrate=38400 C:\\=\" Microsoft Windows 2000 \" Install WinDbg ver 3.0.0010.0 on the host machine. E. Build the driver tviauti in checked build environment with optimization disabled. You will get a system file tviauti.sys and a symbol file tviauti.pdb. F. Install the driver tviauti to the target system. G. Copy the symbol file tviauti.pdb to directory e:\\windbg\\symbols of the host machine. H. Copy the source code of tviauti to directory e:\\windbg\\source of the host machine. I. Set the following system environment variables on the host system. set _NT_SYMBOL_PATH= e:\\windbg\\symbols set _NT_DEBUG_PORT=com1 set _NT_DEBUG_BAUD_RATE=38400 Set _NT_SOURCE_PATH=E:\\WINDBG\\SOURCE J. Start WinDbg on host system then start kernel debug. The WinDbg will wait for connecting. K. Reboot the target machine. L. Now you can control WinDbg to debug the driver tviauti. You can break the target machine, set breakpoint in the modules to be debugged. Some notes about kernel debug with WinDbg. A. If you want to debug a kernel driver in source mode. First, you must build the kernel driver in checked build environment with optimization disabled. Second, you must make the symbol file and source code of the driver accessible to WinDbg. B. If you only want to debug a kernel driver. You don’t need to install all the Windows 2000 OS symbol files. You only need the symbol file of the kernel driver. C. We had better start WinDbg before the target machine has started. Or you can’t get modules’ information from target machine and you can’t do the debug. |
|
|