Hi!
I’m working with a WDM driver that uses many
libraries.
I want to integrate the CUV with my driver so I can
check it.
In order to work with libraries I changed the section
in ddk\bin\makefile.new:
!ifdef VERIFIER_DDK_EXTENSIONS
!if (“$(TARGETTYPE)” == “DRIVER” && \
“$(DRIVERTYPE)” != “wdm” && “$(DRIVERTYPE)” !=
“WDM” && \
“$(DRIVERTYPE)” != “VXD”
TO:
!ifdef VERIFIER_DDK_EXTENSIONS
!if (“$(TARGETTYPE)” == “DRIVER” || “$(TARGETTYPE)” ==
“LIBRARY”) && \
“$(DRIVERTYPE)” != “wdm” && “$(DRIVERTYPE)” !=
“WDM” && \
“$(DRIVERTYPE)” != “VXD”
I manged to compile my code with the CUV, I see in my
.sys bin file the error strings that the CUV might
output and I see with softice that the DDK_DriverEntry
is called before DriverEntry etc…
My problem is that I do not know how can I see the
error outputs of the CUV.
When I’m running with SoftIce i get nothing, and
WinDbg doesn’t help as well…
Can someone give me a step by step directions
regarding how to view the Debugger Output?
Maybe I got other problem somewhere…
Thanks in advance…
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
Alon Elhanani wrote:
In order to work with libraries I changed the section
in ddk\bin\makefile.new:
!ifdef VERIFIER_DDK_EXTENSIONS
!if (“$(TARGETTYPE)” == “DRIVER” && \
“$(DRIVERTYPE)” != “wdm” && “$(DRIVERTYPE)” !=
“WDM” && \
“$(DRIVERTYPE)” != “VXD”
TO:
!ifdef VERIFIER_DDK_EXTENSIONS
!if (“$(TARGETTYPE)” == “DRIVER” || “$(TARGETTYPE)” ==
“LIBRARY”) && \
“$(DRIVERTYPE)” != “wdm” && “$(DRIVERTYPE)” !=
“WDM” && \
“$(DRIVERTYPE)” != “VXD”
Let’s just start by saying that when you edit the build files for
anything, you’re pretty much on your own and moving into uncharted
territory.
I manged to compile my code with the CUV, I see in my
.sys bin file the error strings that the CUV might
output and I see with softice that the DDK_DriverEntry
is called before DriverEntry etc…
My problem is that I do not know how can I see the
error outputs of the CUV.
When I’m running with SoftIce i get nothing, and
WinDbg doesn’t help as well…
You should see a message from CUV indicating that your driver is running
with CUV enabled.
If this is on Longhorn, you’re probably not seeing ANY debug output from
the default level. You should check
http://www.osronline.com/article.cfm?article=295
Peter
OSR
Hi again!
Well, I understood this issue.
I usually working with softice as my kernel debugger.
I tried to do kernel debugging with the WinDbg
(through remote debugging), but I didn’t succeed…
Can you pleas give me a step by step directions, how
to attach the KD or the WinDbg only for the CUV
purpose…
Thanks
Alon.
When you say that I should see an output that says
the
driver is running with CUV - where should the output
appear? in the debugview for example? softice
output?
I’m running on Windows XP SP1
In the debugger (WinDbg or KD). CUV doesn’t generate
output (and, in
fact, disabled itself) if a debugger isn’t attached.
I have no idea if
the output is generated in softIce.
Peter
OSR
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250
Alon Elhanani wrote:
Can you pleas give me a step by step directions, how
to attach the KD or the WinDbg only for the CUV
purpose…
I suggest you read the debugger documentation and follow the
step-by-step instructions given there. This really is an excellent
document.
Access this document from Start… Programs… Debugging Tools for
Windows… Debugging help. Look at “Debuggers”, “Installation and
Setup”, “Kernel mode setup”.
Peter
OSR
Hi again!
Thanks for the help but as you can assume I already
followed this document and did manage to remote debug
my machine…
The only problem of course is that I did not manage to
see the CUV outputs…
I can just tell you again that my code is complied for
sure with the CUV since when I run with SoftIce I see
in the stack that gc_xxx function are “before” my
functions…
Any help or suggestions are most welcomed…
I suggest you read the debugger documentation and
follow the step-by-step instructions given there.
This really is an excellent document.
Access this document from Start… Programs…
Debugging Tools for Windows… Debugging help. Look
at “Debuggers”, “Installation and Setup”, “Kernel
mode setup”.
Peter
OSR
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250