diff --git a/client/TracyCallstack.cpp b/client/TracyCallstack.cpp index 236732b8..e60e6d3f 100644 --- a/client/TracyCallstack.cpp +++ b/client/TracyCallstack.cpp @@ -380,7 +380,7 @@ static int SymbolAddressDataCb( void* data, uintptr_t pc, const char* fn, int li { const char* symloc = nullptr; Dl_info dlinfo; - if( dladdr( (void*)ptr, &dlinfo ) ) symloc = dlinfo.dli_fname; + if( dladdr( (void*)pc, &dlinfo ) ) symloc = dlinfo.dli_fname; if( !symloc ) symloc = "[unknown]"; sym.file = symloc; sym.line = 0;