Don't display custom stack frames as pointers.

This commit is contained in:
Bartosz Taudul 2019-03-03 18:20:55 +01:00
parent dc74297439
commit f6913eecf0

View File

@ -7562,15 +7562,22 @@ void View::DrawCallstackWindow()
txt = m_worker.GetString( frame.file );
if( m_showCallstackFrameAddress )
{
ImGui::TextDisabled( "0x%" PRIx64, entry );
if( entry.sel == 0 )
{
ImGui::TextDisabled( "0x%" PRIx64, entry.idx );
if( ImGui::IsItemClicked() )
{
char tmp[32];
sprintf( tmp, "0x%" PRIx64, entry );
sprintf( tmp, "0x%" PRIx64, entry.idx );
ImGui::SetClipboardText( tmp );
}
}
else
{
ImGui::TextDisabled( "Custom #%" PRIu64, entry.idx );
}
}
else
{
if( frame.line == 0 )
{