Hi debugging guru,
I’m working on a WDDM user mode display driver but I don’t know how to debug it with Windbg. I tried the kernel mode debugger with “sxe ld displaydriverum.dll” where the displaydriverum.dll is the name of the user mode driver but I saw no breaking. I would like to use the user mode debugger but I didn’t know which process to be attached. I think the process should be the DirectX user mode runtime.
Thanks,
Marshall
You can add breakpoint into some known place inside user mode DLL, which u
know will get called in any case. Once that break point gets hit from there
u have to load the DLL module. After that you can start your user mode
debugging.
On Tue, Dec 7, 2010 at 2:23 PM, wrote:
> Hi debugging guru,
>
> I’m working on a WDDM user mode display driver but I don’t know how to
> debug it with Windbg. I tried the kernel mode debugger with “sxe ld
> displaydriverum.dll” where the displaydriverum.dll is the name of the user
> mode driver but I saw no breaking. I would like to use the user mode
> debugger but I didn’t know which process to be attached. I think the process
> should be the DirectX user mode runtime.
>
> Thanks,
> Marshall
>
> —
> WINDBG is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
With the user mode debugger, the problem is that without attaching the executable image how I can set the breakpoints?
From the display driver archetecture, this user mode display driver is called by the DirectX user mode runtime. Does it mean that I can use the user mode debugger to debug the dll? Which exe image should be attached?
You would need to debug a process that loads your DLL.
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@hotmail.com
Sent: Tuesday, December 07, 2010 6:02 AM
To: Kernel Debugging Interest List
Subject: RE:[windbg] How to debug the WDDM user mode display driver
With the user mode debugger, the problem is that without attaching the executable image how I can set the breakpoints?
From the display driver archetecture, this user mode display driver is called by the DirectX user mode runtime. Does it mean that I can use the user mode debugger to debug the dll? Which exe image should be attached?
WINDBG is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer