mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Fix referencing unknown symbol.
This commit is contained in:
parent
69c635f8bf
commit
acd8a32672
@ -1463,7 +1463,7 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
|
|||||||
ImGui::TextDisabled( "%i.", idx++ );
|
ImGui::TextDisabled( "%i.", idx++ );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
auto sd = worker.GetSymbolData( v.addr );
|
auto sd = worker.GetSymbolData( v.addr );
|
||||||
const auto symName = worker.GetString( sd->name );
|
const auto symName = sd ? worker.GetString( sd->name ) : "[unknown]";
|
||||||
if( v.addr >> 63 == 0 )
|
if( v.addr >> 63 == 0 )
|
||||||
{
|
{
|
||||||
ImGui::TextUnformatted( symName );
|
ImGui::TextUnformatted( symName );
|
||||||
|
Loading…
Reference in New Issue
Block a user