INFO: Visual C++ Project Settings and .DBG File CreationID: Q216356
|
This article explains the process of creating a debug (.dbg) file using the REBASE utility from any executable file or dynamic link library (DLL) generated using Microsoft Visual C++ 32-Bit Edition.
To create a debug file using the REBASE utility from any executable file or DLL generated using Microsoft Visual C++ 32-Bit Edition complete the following steps:
dumpbin /headers IMAGE_FILEWhere IMAGE_FILE is the name of the executable or DLL file. Dumpbin /headers will dump an ample amount of header information. The image base value can be found in the OPTIONAL HEADER VALUES section labeled image base. By default, the image base value is 0x400000 for executable files and 0x10000000 for DLLs.
rebase -b IMAGE_BASE -x DBG_PATH IMAGE_FILEWhere IMAGE_BASE is the preferred base address of the image.
e.g. rebase -b 0x10000000 -x . sample.dllThis strips the debug information from the sample.dll file and creates the sample.dbg file in the directory where the sample.dll file is located.
Q121366: INFO: PDB and DBG Files - What They Are and How They Work
Q128372: HOWTO: Remove Symbols from Device Drivers
Additional query words:
Keywords : kbDebug kbKernBase
Version : winnt:4.0,5.0,6.0
Platform : winnt
Issue type : kbinfo
Last Reviewed: April 9, 1999