Questions tagged [dbghelp]

dbghelp is the short name of the Microsoft Debug Help library.

dbghelp is Microsoft's Debug Help Library, which contains utilities for debugging applications. Three common uses for it are for writing minidump files using MinidumpWriteDump, producing a stack trace using StackWalk64 and loading symbols from PDB files, possibly from a symbol server.

108 questions
0
votes
0 answers

Symbols Enumeration callback function called more than once for the same symbol?

I've wrote a small program that uses the dbghelp library to print all the symbols for some executable. The main enumeration function that i call is : SymEnumSymbols that should receive a callback that would be called for each symbol. I tried to run…
sborpo
  • 928
  • 7
  • 15
0
votes
1 answer

Need to get List of C++ Kernel Types?

Respectfully!! I need complete list of kernel types such as "CRITICAL_SECTION", "_LARGE_INTEGER" or "_SECURITY_ATTRIBUTES". Basically I am extracting all the data members of class given class name as type from some debugging SDK (right now using DIA…
Usman
  • 77
  • 2
  • 9
0
votes
1 answer

dbghelp - Get struct symbol by name

I am building a Symbols service, and I want to be able to print the struct variables and their offsets. I am loading the needed pdb, and trying to find a struct that fits the given mask. For example, I want to get details about the struct…
Guy
  • 137
  • 9
0
votes
0 answers

Trying to detour IUnknown_AddRef_Proxy & IUnknown_Release_Proxy without success

For some reason, I cannot get the address of IUnknown_AddRef_Proxy and IUnknown_Release_Proxy using the DetourFindFunction() or locate it using SymEnumSymbols(). I found another one in rpcrt4, but have determined that there is one in combase that…
Adrian
  • 10,246
  • 4
  • 44
  • 110
0
votes
1 answer

Dbghelp versions?

I've been doing some research on Dbghelp, trying to determine whether or not I need to go through the hassle of updating it. I'm currently on version 6.12, does anyone have a change log for 6.12 to 6.13.X? Or if not, do you know if anything…
0
votes
1 answer

Obtain function args from callstack address

I am printing out some debug information about the callstack. I can get the function name easily enough using SymFromAddr void getFunctionInfo(FunctionInfo& funcInfo, uintptr_t address) { DWORD64 dwDisplacement; //not used static char…
David Woo
  • 749
  • 4
  • 13
0
votes
0 answers

Telling bitness from FileHeader.Machine

Notes: (1) I'm working in Windows 7 64-bit and (2) I've already seen How can I test a Windows DLL file to determine if it is 32 bit or 64 bit?. I'm trying to write a C program that checks a DLL's bitness. Using the Windows API and the Debug Help…
0
votes
1 answer

IDebugSymbols doesn't find symbols in symbol server

I am writing a small application that prints out the call stack of a given crash dump. The code is more or less base on this tutorial:…
user425502
0
votes
1 answer

How do you get a fairly C#-esque stack trace in MSVC++?

In C#, you get the following type of stack trace: at ExceptionGenerator.Program.three() in c:\Users\ADIMA\Documents\Visual Stud io 2013\Projects\ExceptionGenerator\ExceptionGenerator\Program.cs:line 36 at ExceptionGenerator.Program.two() in…
Alexandru
  • 12,264
  • 17
  • 113
  • 208
0
votes
1 answer

less stacks using StackWalk64

I built test.exe which will crash and generate .dmp file using MinidumpWriteDump, and parser.exe is used to read and print information from that dmp file. In parser.exe I use StackWalk64 to get all stack traces of all threads in that dmp file. But…
mr.dot
  • 16
  • 4
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

How to store debug symbols and binaries side-by-side

Recently I noticed that when downloading symbols from Microsoft symbol store using SymChk it brings DLLs as well as PDBs. I'm wondering if it is possible to store both binaries and symbols using standard microsoft tools like SymChk/SymStore?
kreuzerkrieg
  • 3,009
  • 3
  • 28
  • 59
0
votes
1 answer

How can I detect the version of DbgHelp at compile time?

The reference manual for DbgHelp nicely lists all the versions and what changes they introduced. How can I detect the version at compile time?
hmn
  • 716
  • 7
  • 18
-1
votes
1 answer

Unable to get Windows symbols from the public symbols server using an x64 application

I am trying to use DbgHelp to find the address of some symbols. I want to be able to use the symbols available on Microsoft's public server. I have the search path set with SymSetSearchPath as…
bananabr
  • 147
  • 11
-1
votes
1 answer

why dbghelp cannot resolve symbol from managed callstack?

What's the difference between managed callstack and native callstack, why cannot resolve the symbol from managed callstack by dbghelp? can anyone tell me the basic reason?