mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Add space for register data in each asm line.
This commit is contained in:
parent
bb4b08e8cf
commit
8b2b2f650f
@ -716,6 +716,7 @@ bool SourceView::Disassemble( uint64_t symAddr, const Worker& worker )
|
||||
}
|
||||
cs_close( &handle );
|
||||
m_codeLen = len;
|
||||
ResetAsm();
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -2706,4 +2707,9 @@ void SourceView::SelectMicroArchitecture( const char* moniker )
|
||||
assert( idx != MicroArchitectureNum );
|
||||
}
|
||||
|
||||
void SourceView::ResetAsm()
|
||||
{
|
||||
for( auto& line : m_asm ) memset( line.regData, 0, sizeof( line.regData ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -98,6 +98,7 @@ private:
|
||||
{
|
||||
RegsX86 writeX86[20];
|
||||
};
|
||||
uint16_t regData[20];
|
||||
};
|
||||
|
||||
enum { AsmLineSize = sizeof( AsmLine ) };
|
||||
@ -151,6 +152,8 @@ private:
|
||||
TokenColor IdentifyToken( const char*& begin, const char* end );
|
||||
std::vector<Token> Tokenize( const char* begin, const char* end );
|
||||
|
||||
void ResetAsm();
|
||||
|
||||
struct TokenizerState
|
||||
{
|
||||
void Reset()
|
||||
|
Loading…
Reference in New Issue
Block a user