| 316 | } |
| 317 | |
| 318 | void DbgHelpInit() |
| 319 | { |
| 320 | if( s_shouldResolveSymbolsOffline ) return; |
| 321 | |
| 322 | _SymAddrIncludeInlineTrace = (t_SymAddrIncludeInlineTrace)GetProcAddress(GetModuleHandleA("dbghelp.dll"), "SymAddrIncludeInlineTrace"); |
| 323 | _SymQueryInlineTrace = (t_SymQueryInlineTrace)GetProcAddress(GetModuleHandleA("dbghelp.dll"), "SymQueryInlineTrace"); |
| 324 | _SymFromInlineContext = (t_SymFromInlineContext)GetProcAddress(GetModuleHandleA("dbghelp.dll"), "SymFromInlineContext"); |
| 325 | _SymGetLineFromInlineContext = (t_SymGetLineFromInlineContext)GetProcAddress(GetModuleHandleA("dbghelp.dll"), "SymGetLineFromInlineContext"); |
| 326 | |
| 327 | #ifdef TRACY_DBGHELP_LOCK |
| 328 | DBGHELP_INIT; |
| 329 | DBGHELP_LOCK; |
| 330 | #endif |
| 331 | |
| 332 | SymInitialize( GetCurrentProcess(), nullptr, true ); |
| 333 | SymSetOptions( SYMOPT_LOAD_LINES ); |
| 334 | |
| 335 | #ifdef TRACY_DBGHELP_LOCK |
| 336 | DBGHELP_UNLOCK; |
| 337 | #endif |
| 338 | } |
| 339 | |
| 340 | DWORD64 DbgHelpLoadSymbolsForModule( const char* imageName, uint64_t baseOfDll, uint32_t bllSize ) |
| 341 | { |