I have a basic question.
I have compiled not even developed) a very simple kernel driver.
It installs, leaves some trace in a file I write to.
But when I try to you WinDbg to trace it, to see the result of DbgPrint I firt see this :
Debuggee not connected
Not knowing what to connect, I decided to go into Kernel Debug.
Symbols load. I tried to do a “bp”, it says it is not supported by the current debuggee (which I can understand).
No print out from DbgPrint appears above the cmd prompt of Windbg although the file to which the driver also writes is getting updated.
What must I do? How do I specify that I want to trace a given driver I loaded and is running?
Connected to Windows XP 2600 x86 compatible target at (Tue Oct 5 13:44:14.015 2010 (UTC - 4:00)), 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 kernel
debugging support (/debug or bcdedit -debug on) to work optimally.
*******************************************************************************
Windows XP Kernel Version 2600 (Service Pack 3) MP (2 procs) Free x86 compatible
Product: WinNt, suite: TerminalServer SingleUserTS Personal
Built by: 2600.xpsp_sp3_gdr.100427-1636
Machine Name:
Kernel base = 0x804d7000 PsLoadedModuleList = 0x8055d720
Debug session time: Tue Oct 5 13:44:15.015 2010 (UTC - 4:00)
System Uptime: 0 days 0:54:11.697
lkd> .reload
Connected to Windows XP 2600 x86 compatible target at (Tue Oct 5 13:45:12.828 2010 (UTC - 4:00)), ptr64 FALSE
Loading Kernel Symbols
…
…
Loading User Symbols
…
Loading unloaded module list
…
lkd> bp
^ Operation not supported by current debuggee error in ‘bp’