|
Hi, I have a sample OSR USB board and I have written a sample driver for this USB board.
I have built this driver and able to install.
But I am not able to debug this driver using Windbg since it is kernel driver.
OS: Win7
#include ntddk.h
DRIVER_UNLOAD DriverUnload;
void DriverUnload(PDRIVER_OBJECT pDriverObject)
{
DbgPrint("Driver Unload\n");
}
NTSTATUS DriverEntry(PDRIVER_OBJECT pDriverObject, PUNICODE_STRING pRegistryPath)
{
pDriverObject->DriverUnload = DriverUnload;
DbgPrint("Driver Entry : Hello Windows Device Driver World!\n");
return STATUS_SUCCESS;
}
Can anybody help me in debugging my driver?
|
|
|
|
|
In system config on the target you need to enable kernel debug specifying firewire of serial.
Hook the target to the host with tht relevant cable.
Turn off the target.
Run windbg on the host and set it to kernel debug on the relevant interface (firewire or serial).
Restart the target and it should connect and you will see a lot of debug data.
You then set the path in windbg for the symbols and code for your driver (and use the global microsoft symbol server for their code, search in help for symsrv), then you can set breakpoints and step through your code.
==============================
Nothing to say.
|
|
|
|
|
So you are a supposedly Senior Software developer, yet you cant read simple documentation, for which there is plenty available, and then, when I give you the answer you dont ever bother responding.
What a joke you are!
==============================
Nothing to say.
|
|
|
|