各位好,我是一个驱动开发的初学者,碰到了点问题。
我在c:\boot.ini添加“/debug”选项,重启计算机。启动windbg,配置符号路径为:srv*c:\symbols*http://msdl.microsoft.com/download/symbols,然后进行本地内核调试,但好像什么都干不了。
比如,我输入bu命令,此时的信息是:
Connected to Windows XP 2600 x86 compatible target, ptr64 FALSE
Symbol search path is: srv*c:\symbols*http://msdl.microsoft.com/download/symbols
Executable search path is:
*******************************************************************************
WARNING: Local kernel debugging requires booting with /debug to work optimally.
*******************************************************************************
Windows XP Kernel Version 2600 (Service Pack 2) MP (2 procs) Free x86 compatible
Product: WinNt, suite: TerminalServer SingleUserTS
Built by: 2600.xpsp_sp2_gdr.080814-1233
Kernel base = 0x804d8000 PsLoadedModuleList = 0x8055d700
Debug session time: Fri Apr 24 11:45:59.273 2009 (GMT+8)
System Uptime: 0 days 3:15:35.281
lkd> bu
^ Operation not supported by current debuggee error in 'bu'我再随便输入一些命令,都不能正常的进行,请问各位高手,这是为什么?我该如何做?
我在c:\boot.ini添加“/debug”选项,重启计算机。启动windbg,配置符号路径为:srv*c:\symbols*http://msdl.microsoft.com/download/symbols,然后进行本地内核调试,但好像什么都干不了。
比如,我输入bu命令,此时的信息是:
Connected to Windows XP 2600 x86 compatible target, ptr64 FALSE
Symbol search path is: srv*c:\symbols*http://msdl.microsoft.com/download/symbols
Executable search path is:
*******************************************************************************
WARNING: Local kernel debugging requires booting with /debug to work optimally.
*******************************************************************************
Windows XP Kernel Version 2600 (Service Pack 2) MP (2 procs) Free x86 compatible
Product: WinNt, suite: TerminalServer SingleUserTS
Built by: 2600.xpsp_sp2_gdr.080814-1233
Kernel base = 0x804d8000 PsLoadedModuleList = 0x8055d700
Debug session time: Fri Apr 24 11:45:59.273 2009 (GMT+8)
System Uptime: 0 days 3:15:35.281
lkd> bu
^ Operation not supported by current debuggee error in 'bu'我再随便输入一些命令,都不能正常的进行,请问各位高手,这是为什么?我该如何做?
解决方案 »
- VC 2008 导入Microsoft excel 11.0 object library后出错
- 为什么我的MFC对话框里添加了个rich edit运行就自动退出了?
- TCP网络连接过多断开问题
- 子线程怎样向Dialog通信???
- 做过条码系统的请进来看看
- 【求助】如何实现我想编的程序呢?详见内!谢谢!
- 问个已经有人问了n遍的问题:如何去掉窗口标题上的"无标题"字样?
- 谁有银行磁条读写器的源代码!
- 50分求购,MSDN Mangazine 2001年及以前的CHM文件。
- 怎么才能顺利调用一个结构,特急!!!在线等待!!1
- 将html表格输出到Excel数字自动变小数点了,如何解决
- 请教socket传文件服务端死掉的可能原因
另外可以本地内核调试的软件有Softice和syser。
google有更多信息。
至于单机调试,推荐使用SoftICE.
Windbg的原理和SoftICE差别很大,windbg主要是进行双机调试,类似于嵌入式开发中上位机/下位机的概念。
现在内存都海量了,在Virtual PC中装一个check build windows xp,windbg用起来会很爽的,尤其是可以一边调试一边对照ida,还可以听歌。
Not all commands are available in a local kernel debugging session. Typically, you cannot use any command that causes the target computer to stop, even momentarily, because you cannot resume operation.In particular, you cannot use the following commands:Execution commands, such as g (Go), p (Step), t (Trace), wt (Trace and Watch Data), tb (Trace to Next Branch), gh (Go with Exception Handled), and gn (Go with Exception Not Handled)
Shutdown and dump file commands, such as .crash, .dump, and .reboot
Breakpoint commands, such as bp, bu, ba, bc, bd, be, and bl
Register display commands, such as r and variations
Stack trace commands, such as k and variations If you are performing local kernel debugging with WinDbg, all of the equivalent menu commands and buttons are also unavailable.Commands That Are Available
All memory input and output commands are available. You can freely read from user memory and kernel memory. You can also write to memory. Make sure that you do not write to the wrong part of kernel memory, because it can corrupt data structures and frequently causes the computer to stop responding (that is, crash).