Merge two conditions.

This commit is contained in:
Bartosz Taudul 2022-05-02 00:51:46 +02:00
parent caf092d4b4
commit 85e11c2d97
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -285,12 +285,9 @@ bool View::ViewDispatch( const char* fileName, int line, uint64_t symAddr )
else
{
const auto parentAddr = m_worker.GetSymbolForAddress( symAddr );
if( parentAddr != 0 )
if( parentAddr != 0 && m_worker.HasSymbolCode( parentAddr ) )
{
if( m_worker.HasSymbolCode( parentAddr ) )
{
baseAddr = parentAddr;
}
baseAddr = parentAddr;
}
}
if( baseAddr != 0 || line != 0 )