> -----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Kutty Banerjee
Sent: Tuesday, July 06, 2004 4:18 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] debug info in driver
Hi,
when using the checked build of the ddk environment, is it
sufficient to
just set ntdebug and ntdebugtype environ variables to have
complete debug
info in the driver.
are there any other flags, cmd line parameters to be used?
also does the
source file contain any other information. after doing the
debug build, my
.sys file seems to be very small though i have a separate pdb
file. curious
if i m doing the rite thing.
The normal thing is that you get a separate .PDB for each .SYS (or .DLL)
that you produce. These .PDB files are placed in a place which can be
reached by the debugger (WinDBG for example). The .PDB contains all symbols,
source-line info, data structure definitions, etc that the debugger needs to
keep you informed about symbols, where in the source a particular assembly
instruction belongs, etc.
You’ll obviously need to set the debugger to know where your source files
are too, so that it can display that in the source view, otherwise you’ll
only be able to view data and generated assembler instructions, which isn’t
always what you’d want…
There’s only a little bit of debug information in the .SYS file (global
symbols would be there for instance), so I’d expect a debug and release
version to be fairly similar in size.
[Oh, and you can of course ask the build tool to generate a .PDB for release
build too, should you have a heizenbug at any time].
–
Mats
kutty
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