From f6913eecf0e8197d8624d7364d5bd7babc3164da Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 3 Mar 2019 18:20:55 +0100 Subject: [PATCH] Don't display custom stack frames as pointers. --- server/TracyView.cpp | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index bb4d578c..3d32abc2 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -7562,12 +7562,19 @@ void View::DrawCallstackWindow() txt = m_worker.GetString( frame.file ); if( m_showCallstackFrameAddress ) { - ImGui::TextDisabled( "0x%" PRIx64, entry ); - if( ImGui::IsItemClicked() ) + if( entry.sel == 0 ) { - char tmp[32]; - sprintf( tmp, "0x%" PRIx64, entry ); - ImGui::SetClipboardText( tmp ); + ImGui::TextDisabled( "0x%" PRIx64, entry.idx ); + if( ImGui::IsItemClicked() ) + { + char tmp[32]; + sprintf( tmp, "0x%" PRIx64, entry.idx ); + ImGui::SetClipboardText( tmp ); + } + } + else + { + ImGui::TextDisabled( "Custom #%" PRIu64, entry.idx ); } } else