Microsoft KB Archive/301365

From BetaArchive Wiki

HOWTO: Generate PDB Files with Windows NT 4.0 DDK

Q301365



The information in this article applies to:


  • Microsoft Windows NT 4.0 Driver Development Kit (DDK)





SUMMARY

The latest version of Windbg requires symbols in the PDB files to perform both kernel and user-mode debugging. By default, the Microsoft Windows NT 4.0 DDK does not produce symbols in a PDB file. Instead, Microsoft Windows NT keeps the symbols in the target binary itself.



MORE INFORMATION

To generate a PDB file with Windows NT 4.0 DDK in both the free and checked build environment so that the PDB file can be debugged with Windbg, you must run the following command in your build environment window before you run the build command:

set USE_PDB=1
set NTDEBUGTYPE=windbg 

Alternatively, you can include the following two lines in your SOURCES file to generate PDB files:

USE_PDB=1
NTDEBUGTYPE=windbg 

The variable %NTDEBUGTYPE% tells which type of symbolic information to create. When %NTDEBUGTYPE% is set to windbg, the linker creates a PDB file that contains CodeView information. This is the type of symbol information that is important for debugging.

On a Microsoft Windows 2000, and later, releases of the DDK, the %USE_PDB% variable in Makefile.def defaults to 1 when you set NTDEBUGTYPE=windbg; however, on Windows NT 4.0, you must explicitly set the %USE_PDB% value.



REFERENCES

You can download the latest version of Windbg from the following Web site at:

http://www.microsoft.com/ddk/debugging/

Additional query words:

Keywords : kbDDK kbDebug kbKMode kbWinDBG kbDSupport kbGrpDSNTDDK kbgrpdsvc
Issue type : kbhowto
Technology : kbWinNTsearch kbWinNT400xsearch kbAudDeveloper kbWinDDKSearch kbWinNT400DDK


Last Reviewed: June 26, 2001
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.