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

I am looking for a C++ library which processes debug symbols out of a .PDB document

Creating a module that will decode structures defined in a PDB document; can anyone provide me with a module that would extract the required debugging symbols from the PDB document? Thanks.
Jeremy
  • 29
  • 1
2
votes
1 answer

MiniDumpWriteDump() hangs

MiniDumpWriteDump() of DbgHelp library hangs if heap allocation/deallocation/reallocation is in progress in another thread. Here is the call stack: DbgHelp pauses the other threads, then waits indefinitely for the mutexes obtained by those threads. …
Serge Rogatch
  • 13,865
  • 7
  • 86
  • 158
2
votes
0 answers

How to fix ERROR_INVALID_ADDRESS (error 487) returned by SymFromAddr

I'm tryng to get function name by address. I'm using VS Community 2019 and my first step is to copy microsoft examples that you can find…
Alb
  • 73
  • 3
2
votes
6 answers

How to programatically read native DLL imports in C#?

How can I programatically analyze a native DLL to read its imports? [EDIT: my original question looked like the following, along with a huge chunk of defective code. Please see answers below for more correct code.] The C# code located at this link…
Eric
  • 11,392
  • 13
  • 57
  • 100
2
votes
1 answer

Do Pdb files contains public function's arguments name?

I need to look up function argument names of public methods. Types are easily available from PDB symbols and DIA symbols, but is there any way out by which we can trace and pull out function argument names as well? I am concerned with the native pdb…
Usman
  • 2,742
  • 4
  • 44
  • 82
2
votes
1 answer

DbgHelp - Get full symbol signature (function name + parameters types)

I am using SymEnumSymbols to get all the matching symbols to a given mask, and push them into a vector using the CALLBACK function. The problem is, that the symbol name (which is inside the PSYMBOL_INFO structure) is only the name of the function,…
Guy
  • 137
  • 9
2
votes
0 answers

Deadlock in SymGetSymFromAddr32

I am calling SymGetSymFromAddr32 in test-versions of my executable. Until recently this worked correctly, but when using dbghelp.dll and symsrv.dll from the Windows SDK 8.1, my application hangs when calling this function. This is the call stack I…
Patrick
  • 23,217
  • 12
  • 67
  • 130
2
votes
0 answers

PDB files not loading

Our application has some add-ons in the form of DLLs in nested directories. We are running tests with an instance of DbgView running in the background via which we get our logs. The problem is we run the tests on a different computer from the one we…
matyicsapo
  • 21
  • 1
  • 4
2
votes
2 answers

Debugging (Win): DIA versus DBGHELP

Short and concise: What are the actual differences between DIA (Debug Interface Access) and the DBGHELP libraries? I know that DIA is COM based and seems to be extremely powerful (as well as able to be used with managed and unmanaged processes),…
PuerNoctis
  • 1,364
  • 1
  • 15
  • 34
1
vote
1 answer

Diagnose BEX event, exception code 0xC0000409 (STATUS_STACK_BUFFER_OVERRUN)

I build a program via the IDE CVI/LabWindows from National Instruments. This program runs fine. I actually include a dll for modbus functionality (libmodbus) that I compiled via Microsoft Visual C++ Express 2008. All together runs fine for few days…
ottelo15
  • 33
  • 3
1
vote
0 answers

Verify symbol server is valid

I'm trying to check if a symbol server is valid. According to this answer the server should serve /pingme.txt (this is also backed by the official docs here). However, the MS symbol server does not seem to adhere to this behavior (anymore?). The…
thfabian
  • 125
  • 9
1
vote
0 answers

No module information in minidump on win 11

There are problems with my application on win 11. For some reason, when running win10 version of my application, there is no needed information in the minidump crash file. Using the minidump_dump tool I figured out, that there are no debug_id and…
1
vote
1 answer

Cannot get SymGetTypeInfo to work (error 1, Incorrect function)

TLDR: Could someone explain how to correctly use the SymGetTypeInfo. My goal is to get the type information for local variables (wherever Rip/Eip happens to be). According to the documentation, I need to call the SymSetContext with the…
1
vote
0 answers

why dbghelp.h's symbol related functions always return 126 error code?

When i try to use the functions SymbolFromName() e SymbolFromAddress() the return code always return 126 (MODULE_NOT_FOUND), the code is : #include #include #include #include
colo
  • 101
  • 8
1
vote
1 answer

Getting debug symbol's module name

Is there a way to get the module's name of a debug symbol obtained by using dbgHelp in C++/Windows? thanks :)
Idov
  • 5,006
  • 17
  • 69
  • 106