Questions tagged [pdb-files]

This PDB is Microsoft's "Program Database" format for debugging symbols, stored in files with a `.pdb` extension.

These are a kind of debugging symbols; you need them to get decent stack traces of MSVC-compiled native programs on Windows, but on .NET they are only really needed for source locations, so that the debugger can find the lines of source code that correspond with each part of the compiled code.

See also the program database article on Wikipedia.

If you want to use information from PDB files in a program, you could use either DbgHelp, a C-level API, or DIA, a COM API w/ .NET bindings.

This tag was split from , which is supposed to be empty now, but might have new questions where the asker didn't know what PDB was relevant (so it would be good to move them here when this is the one).

See also:

646 questions
0
votes
0 answers

Advanced PDB Graphics Error using VS

So here is the output I have been trying to get past. I recently installed VS12 on a new PC. First I was unable to load any PDB files but this was resolved by loading in from the Microsoft Symbol Servers. The last 4, which I have concluded were ATI…
Dan
  • 11
0
votes
1 answer

Extract loaded debug symbols into .pdb

I'm currently reversing a new application and encountered a strange behaviour: Browsing the running application with 'Cheat Engine' reveals the function names retrieved by the loaded symbols. An example address: 'xxxx.lua_getinfo+A8EE' The…
Marco de Abreu
  • 663
  • 5
  • 17
0
votes
1 answer

How do I make DIA release its lock on a pdb file?

How do I make DIA release its lock on a pdb file? I load a pdb and create a session as shown below, and it all works fine, I can use the session to get data from the pdb. When I'm finished with the pdb I release the session and the DiaSource, but…
0
votes
1 answer

Getting link.exe, lib.exe, editbin.exe and dumpbin.exe to use the symbol server

I have WinDbg set to download symbols to c:\symbols. The symbols for advapi32 (for example) are in c:\symbols\advapi32.pdb\3F32049F550C42B09CF114A1FB8A97E92\advapi32.pdb. The only way I've gotten link.exe, and those other stub exe's to use those…
Justin Dearing
  • 14,270
  • 22
  • 88
  • 161
0
votes
1 answer

Remove the PDB file/functionality from Lib

I'm stuck in the following situation, I have been asked to rebuild a website, the original site was built and the solution had 5 projects, 4 of these where the different data layers and one of them was the actual website. I only have the dll's of…
0
votes
3 answers

Finding symbols for C++ source file

I have a project that is C++ WIN32 project. I found a problem that some symbol can be recognized by the windbg but some don't. I don't know why. The characteristics are: 1) both are C++ method 2) both function are in one .cpp file 3) the two…
Bin Chen
  • 61,507
  • 53
  • 142
  • 183
0
votes
1 answer

C++ data validation not working properly and PDB error?

Evening everyone. I have a program that is meant to have a ticket price and and have parent and child fundraisers to discount the ticket. The program is simple enough, but I'm also supposed to have data validation that makes sure the user only…
tserran
  • 53
  • 1
  • 4
  • 13
0
votes
1 answer

Extracting binary name from PDB file

I am working on a project where I need to extract binary name information from a pdb(program database information) file. Earlier I thought that I will be able to do it as: hr = CoCreateInstance(__uuidof(DiaSource), NULL, …
algo-geeks
  • 5,280
  • 10
  • 42
  • 54
0
votes
1 answer

How to create stripped pdb from static library?

I link to a static library (3rd party) and get a LNK4099 warning: .Pdb not found Is there any way to create a stripped pdb for this library? I do not require debug info from this specific library, just no warnings. Till now i came across LNK4209:…
Florea Marian
  • 39
  • 1
  • 5
0
votes
1 answer

Visual Studio debugger will only load symbols from intermediate directory

I have a Visual Studio class library DLL that I build with MSBuild, which when used in the Debug configuration, copies the DLL, the PDB, and various resource files, into a web application. The problem I have is that when I debug the web application,…
ergolargo
  • 53
  • 6
0
votes
1 answer

Windows PDB file contains multiple symbols for same address?

Possible Duplicate: Why two functions print the same address? I am working with PDB symbol files for an application which processes them (via the DbgHelp API). I have come across a strange issue where a PDB file will contain multiple different…
QAZ
  • 4,870
  • 6
  • 36
  • 50
0
votes
1 answer

Read VC++ PDB source files bounds and lines

So I reverse engenering a program which have a PDB included with functions, source files and global variables symbols. I use IDA PRO which includes the functions and variables names from the PDB but I don't know to what source file each function…
user1798386
0
votes
0 answers

MSBuild copying PDBs of referenced DLLs

I am using MSBuild command line to build my project and with the help of DebugType=None, the project is no longer producing a PDB file when it compiles - which is what I need as these mess up Clickonce Deployment. However all of the referenced DLLs…
NZJames
  • 4,963
  • 15
  • 50
  • 100
0
votes
1 answer

Manually publish pdb to symbol server

I have a 3rd party library, fortunately I have the pdb's for the 3rd party library. I have a symbol server in my organization, I have a local symbol cache folder on my desktop. This 3rd party library in question is used across a lot of projects, I…
Tarun Arora
  • 4,692
  • 4
  • 30
  • 40
0
votes
1 answer

Where do I put Microsoft.Scripting.Debugging so that our embedded interpreter can find it?

I am trying to debug a function I've written, and it is not possible to run it in the regular IronPython interpreter because of all the jiggery pokery we do when we start up the one we've embedded in our application. However when I try and run the…
Matt Ellen
  • 11,268
  • 4
  • 68
  • 90
1 2 3
42
43