I'm trying to determine a static callgraph of an .exe using the .pdb and the DIA SDK. Unfortunately, when linking incrementally, the incremental trampoline thunks called by a function don't show up when using the dia2dump sample.
If you run and link the dia2dump sample (or the simple one here) with debug and incremental linking turned on, calls to wprintf
or printf
do not show up in any function's symbol dump. However, if you disable incremental linking, they do.
Is there any way to get the incremental trampolines used by a function through DIA? Or should I crack the .obj and .lib files instead?