VisualC++ doesn't generate .pdb file

Hi Everyone,

This question might have asked many times before. But I am unable to find
the answer.

I compile the code samples of the Oney’s book with Visual C++ on Windows
2000. Everything works fine except I am unable to get the .pdb files to
debug the samples with my Windbg.

In the “sources” file, I set USE_PDB=1. This supposes to generate the
.pdb file but I could not get it.

I also use “rebase” command to generate debug information.
“rebase -b 0x10000 -x c:\winnt\symbols driver.sys”
This only gives me driver.dbg and not driver.pdb.

What should I do to generate the .pdb file with Visual C++?
Note: I am able to get the .pdb file if I compile the samples with the
BUILD utility.

Thanks

Hi, peter

I have not build device driver code, though, I think you need to specify
both /DEBUG and /PDB:filename option as compile options
how to generate .pdb file with VC++.
In most case of UserMode application, I will do so.

Futoshi

-----Original Message-----
From: Peter Ho [mailto:xxxxx@yahoo.com]
Sent: Thursday, July 11, 2002 9:28 AM
To: NT Developers Interest List
Subject: [ntdev] VisualC++ doesn’t generate .pdb file

Hi Everyone,

This question might have asked many times before. But I am unable to find
the answer.

I compile the code samples of the Oney’s book with Visual C++ on Windows
2000. Everything works fine except I am unable to get the .pdb files to
debug the samples with my Windbg.

In the “sources” file, I set USE_PDB=1. This supposes to generate the
.pdb file but I could not get it.

I also use “rebase” command to generate debug information.
“rebase -b 0x10000 -x c:\winnt\symbols driver.sys”
This only gives me driver.dbg and not driver.pdb.

What should I do to generate the .pdb file with Visual C++?
Note: I am able to get the .pdb file if I compile the samples with the
BUILD utility.

Thanks


You are currently subscribed to ntdev as: xxxxx@citrix.co.jp
To unsubscribe send a blank email to %%email.unsub%%