News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Windbg & PDB

Started by herge, February 29, 2008, 04:26:30 PM

Previous topic - Next topic

herge

 Hi All:

I have been having trouble with WinDbg reading PDB
files. In fact if I delete the PDB file it still looks the
same to windbg!
It does not see the PDB file?

1. What's the best way to build a PDB that windbg
     can read?

2. Am I forgeting something?

0:000> !lmi showtime
Loaded Module Info: [showtime]
         Module: showtime
   Base Address: 00400000
     Image Name: showtime.exe
   Machine Type: 332 (I386)
     Time Stamp: 46f19728 Wed Sep 19 17:39:52 2007
           Size: 4000
       CheckSum: 6cda
Characteristics: 10f 
Debug Data Dirs: Type  Size     VA  Pointer
                 MISC   110,     0,     a00  [Debug data not mapped]
             CODEVIEW    2b,     0,     b10  [Debug data not mapped] - Can't validate symbols, if present.
    Symbol Type: DEFERRED - No error - symbol load deferred
    Load Report: no symbols loaded
// Herge born  Brussels, Belgium May 22, 1907
// Died March 3, 1983
// Cartoonist of Tintin and Snowy

ToutEnMasm

Hello,
windbg need many things to work:
1) Have you the windows symbols downloadable in the windbg site ?
2) the path to those symbols must be correct
        I use the dos environnement to make this
   
Quote
                     SET _NT_SYMBOL_PATH=C:\WINDOWS\Symbols
other path are needed ,see the windgg help , for example
Quote
_NT_ALT_SYMBOL_PATH                     ;path to pdb source files


3) with ml        /c /coff /Zi /Zd /nologo ;  /Zi /Zd  for debug
4) with link      /NOLOGO /DEBUG /PDB:myasm.pdb


herge


Hi ToutEnMasm:

I did not SET _NT_ALT_SYMBOL_PATH   
environment variable.
Also to set image path, source path and
symbol path for windbg I copy it to a
Notepad so I can see What I am Doing!
I usually can't see typos in windbg.

I had down loaded the Windows Symbols
from microsoft for XP SP2 a mere 195 Meg
and 13.5 hrs later we had them.
If I remember it right.   
g start now works!
It works for me!             
// Herge born  Brussels, Belgium May 22, 1907
// Died March 3, 1983
// Cartoonist of Tintin and Snowy