1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Disassemble symbol code fragments.

This commit is contained in:
Bartosz Taudul
2020-03-25 22:37:34 +01:00
parent 79db7f4457
commit 3e134cdce5
3 changed files with 55 additions and 3 deletions
+10 -1
View File
@@ -1,3 +1,4 @@
#include <string>
#include <vector>
struct ImFont;
@@ -15,11 +16,18 @@ class SourceView
const char* end;
};
struct AsmLine
{
uint64_t addr;
std::string mnemonic;
std::string operands;
};
public:
SourceView( ImFont* font );
~SourceView();
void Open( const char* fileName, int line, uint64_t symAddr );
void Open( const char* fileName, int line, uint64_t symAddr, const Worker& worker );
void Render( const Worker& worker );
private:
@@ -34,6 +42,7 @@ private:
int m_selectedLine;
std::vector<Line> m_lines;
std::vector<AsmLine> m_asm;
};
}