From 710a2a64e4c78e76f9e3fc78684208bf640ddd6a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 27 Feb 2020 14:08:56 +0100 Subject: [PATCH] Fix copy pasta. --- client/TracyCallstack.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;