Re: Visual C++ 6.0, Debug Symbols, XP SP2

Tech-Archive recommends: Speed Up your PC by fixing your registry




> If VC6 is to determine that a pdb file is not compatible with its dll,
> it must open the pdb file to make this determination.

No, it must not. In brief, the executable contains debug information record,
which describes what debug information format is used, and where to look
for the corresponding file (.PDB, .DBG, etc., depending on the format).
In case of debug information in CodeView/.PDB format, the format is
identified via a signature (e.g. "NB10" -> PDB 2.0, "RSDS" -> PDB 7.0)
which is placed at the beginning of the record.

When the debugger tries to load symbols for an executable, it first checks
the debug information record in the executable. If at the beginning of the record
it finds a signature that it does not understand, it refuses to load symbols
for the given executable (in our case, VC6 debugger knows how to parse
debug record with "NB10" signature, but knows nothing about "RSDS").
The decision is made at the time of analyzing the executable, and there is no need
to look into the .PDB file (actually, if the debugger does not understand
the signature, it has no way to parse the record and find the name of the debug info file,
be it .PDB or something else).

Also, you could find all this information and more if you would look
into the first article referenced in my first reply.

Oleg



.



Relevant Pages

  • Re: pdb file
    ... The pdb file format is not really a "particular" format. ... just throwing some pdb file out at ms-access is not even close to ... document, pictures, or perhaps it has quicken accounting data. ...
    (microsoft.public.access.forms)
  • Re: failing application registering weird messages in the event log
    ... Make sure that the .PDB file is not copied to the target machines. ... debug information can be either in the executable ... The recommended way is to use the following linker options: ...
    (microsoft.public.vc.language)
  • Re: StackWalk64 doesnt work without pdb files?!?
    ... > I run my compiled prograwm and it prints her stack trace. ... > when i remove the pdb file - the trace is partially printed ... VC++ 2003 linker cannot put debug information into the executable. ... Even if you use /Z7 compiler option, ...
    (microsoft.public.vsnet.debugging)
  • Re: Is it possible to have debug information in Release build completely separated
    ... I understand that at least path to pdb file should be ... generate separate debug information in Release build resulted in significant ... Regards, ...
    (microsoft.public.vc.debugger)
  • Re: Cross platform Assembly for use with C project
    ... Visual Studio requires a PDB file for debugging. ... managed to get MS to give out any information on this format, ...
    (comp.lang.asm.x86)