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
1 answer

Do I need to save more than PDBs to debug a crash dump file?

Exactly much from the original build do I need to save in order to properly debug a crash dump file sent to me by a customer? Obviously I need the PDBs Do I need something else? (This would be for a crash dump file written by the MiniDumpWriteDump…
Joe
  • 5,394
  • 3
  • 23
  • 54
0
votes
1 answer

What does "inline" mean in the context of dbghelp.h?

The documentation for SymEnumSymbolsEx() reads: SYMENUM_OPTIONS_DEFAULT 1 Use the default options. SYMENUM_OPTIONS_INLINE 2 Enumerate inline symbols. What are "inline symbols"? What do SymFromInlineContext and the other inline procedures…
Jorge Rodriguez
  • 603
  • 1
  • 6
  • 14
0
votes
1 answer

what is the 'symbolSize' argument in the callbacks of 'SymEnumSymbols' from dbghelp?

I'm using the symEnumSymbol function from dbghelp library to get details about any malloc symbols in an executable. One of the arguments that I need to pass is a callback functoin with the following signature: BOOL CALLBACK EnumSymProc( …
Z E Nir
  • 332
  • 1
  • 2
  • 15
0
votes
0 answers

Generating my own Windows DbgHelp MiniDump. I don't need to distribute PDB files, do I?

I need to double check my understanding of DbgHelp and crash dumps. To cope with some crashes my Windows application has encountered in the field, I've written an UnhandledExceptionFilter that uses the MiniDumpWriteDump function (from DbgHelp.dll)…
Joe
  • 5,394
  • 3
  • 23
  • 54
0
votes
0 answers

Inconsistent querying of PDB information (SymEnumSymbols)

I am facing a weird behaviour of DbGHelp API and I cannot even find a theory of explanation. I have some PDB file (for a DLL; downloaded from Internet) and I am looking for a specific symbol within the PDB file. I try four options for doing this: A…
Mtm 3.14
  • 29
  • 5
0
votes
0 answers

Address field of SYMBOL_INFO is always 0?

I'm trying to use SymGetLineFromAddr64 to get the source file name of symbols loaded from a PDB. I load the PDB module and enumerate on the types/symbols, but the Address field from the SYMBOL_INFO pointer I get in the enumeration callback is always…
vexe
  • 5,433
  • 12
  • 52
  • 81
0
votes
0 answers

Get signatures of exported functions of a system DLL

How do you get the signature of an exported function of a DLL? I know this is possible since a program analysis tool such as IDA (and ollydbg) manages to get the following for GetVersionExA: push offset VersionInformation ;…
simonzack
  • 19,729
  • 13
  • 73
  • 118
0
votes
1 answer

Loading multiple modules with SymLoadModuleExW

I'm trying to load several symbol modules using the following code: DWORD64 dwBaseDllSymLocal = 0; SymInitializeW(GetCurrentProcess(), NULL, FALSE); SymSetOptions(SYMOPT_DEBUG); dwBaseDllSymLocal = SymLoadModuleExW(GetCurrentProcess(), NULL,…
macro_controller
  • 1,469
  • 1
  • 14
  • 32
0
votes
1 answer

using a .dll function to produce a minidump where application is not made by Visual Studio

I have a .dll file produced with Visual Studio 2005 (unmanaged C++). In various functions within the DLL, I can detect errors and call another function within the DLL to produce a minidump (using dbghelp.dll) . This works perfectly when the…
Harold Bamford
  • 1,589
  • 1
  • 14
  • 26
0
votes
1 answer

dbgHelp new version

I want to upgrade my DbgHelp version from 5.1 to 6.11 (i heard that 5.1 is kind of buggy) so I downloaded "Debugging tools for windows" because that's where the dbgHelp is supposed to be but when I look at what is in the directory ("C:\Program…
Idov
  • 5,006
  • 17
  • 69
  • 106
0
votes
1 answer

Why DIA SDK get_guid always returns Bad ptr(0x000) for Class guid?

I am using DIA SDK for enumerating types and interfaces of COM binaries(dlls/exes). But get_guid always returns Bad Ptr(0x0000) for every Class(CoClass & Interface) used inside that component? Any way out other by which we can get guid from pdb of…
Usman
  • 77
  • 2
  • 9
0
votes
1 answer

Can we calculate/extract Virtual Table address some how from DIA SDK?

Can we extract vtable's starting base address of a type if it implements vtable functions from DIA SDK? Regards, Usman
Usman
  • 77
  • 2
  • 9
0
votes
1 answer

How to filter non kernel(User imported) dll's from DIA SDK?

I need to specifically filter all user imported dll's. DIA SDK gives all modules under SymTagCompiland which includes all kernel and other imports those are not explicitly linked. I only need those dependent Dll's(modules) which are explicitly…
Usman
  • 77
  • 2
  • 9
0
votes
0 answers

Load debug symbols without locking the files

I am trying to load the debug symbols for some modules using DbgHelp without locking the PDB files so our clients can delete them while they are still loaded by us. I've tried creating a file with the FILE_SHARE_DELETE flag and then calling…
Andrei
  • 100
  • 2
  • 11
0
votes
0 answers

WinDbg can't open dumps "Dbghelp version mismatch"

This is something like the question WinDbg: Version mismatch of dbghelp.dll when trying to attach to a process However, I can't post to that question and the marked answer isn't really an answer and doesn't work for me. I have a machine which I used…
Mijin
  • 125
  • 1
  • 9