AFAIK if you set the environment variable USE_PDB=1 you get a pdb.
Alberto.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of
xxxxx@3Dlabs.com
Sent: Friday, July 16, 2004 8:36 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Producing debug information for XP DDK
Not familiar with the W.O. WDM Framework, but if it has a “Debug build” or
“Checked build” option, it should produce a .PDB file.
Or, if you can modify the compile options, you should set:
/Zi
Turning off optimisation is probably also a good idea, as the optimisation
in default release build is pretty much non-source debugging, because the
compiler generates code that is not easy for the debugger to follow. It
seems like the debugger can’t understand register variables unless the same
register is used for the same purpose throughout a function, so if a
variable has been loaded into a register, then some other value is in the
register later on, you don’t get much sense out of the debuggers “local
variable” view, for example.
If there’s no other way to set the optimisation level, you can add /Od to
the end of the command line for the compiler, which will give a warning when
it overrides the optimisation level, but will turn off optimisation.
Hope this helps.
–
Mats
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Roy Silvernail
Sent: Friday, July 16, 2004 1:14 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Producing debug information for XP DDK
[Apologies if this appears twice. The first attempt seems to have
fallen into a black hole.]
I’m moving my driver development onto XP. (yeah, things move
kinda slow
this close to the South
) WinDbg 6 is running smoothly (and even
using the symbol server!), but it wants .pdb or .dbg symbol
files. Most
of my drivers are built on Walter Oney’s WDM framework and I
can’t seem
to convince VS6.0 to produce a .pdb file. Have I missed something
trivial, or will I need to move the code into the DDK build
environment?
And if I have to move, are there any gotchas? Or is it pretty much
just moving source files into the build tree? Presumptive thanks.
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@3dlabs.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.