diff options
| author | Glenn Smith <glenn@vector35.com> | 2019-08-02 21:09:17 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2019-08-02 21:09:17 -0400 |
| commit | 26d7d2f1d5daf50583b18fe59566f5d4436f79f2 (patch) | |
| tree | 402a3a5839bfc44c78754ab2d6cb656a4d21f126 | |
| parent | 087fdd83b85dd894d5b895557a378bb01828d0ff (diff) | |
Fix some places missing tag conversion for text lines
| -rw-r--r-- | architecture.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/architecture.cpp b/architecture.cpp index cd84dd05..b2022af6 100644 --- a/architecture.cpp +++ b/architecture.cpp @@ -2283,6 +2283,7 @@ bool DisassemblyTextRenderer::GetInstructionText(uint64_t addr, size_t& len, line.instrIndex = result[i].instrIndex; line.highlight = result[i].highlight; line.tokens = InstructionTextToken::ConvertAndFreeInstructionTextTokenList(result[i].tokens, result[i].count); + line.tags = Tag::ConvertAndFreeTagList(result[i].tags, result[i].tagCount); lines.push_back(line); } @@ -2302,6 +2303,7 @@ vector<DisassemblyTextLine> DisassemblyTextRenderer::PostProcessInstructionTextL inLines[i].highlight = lines[i].highlight; inLines[i].tokens = InstructionTextToken::CreateInstructionTextTokenList(lines[i].tokens); inLines[i].count = lines[i].tokens.size(); + inLines[i].tags = Tag::CreateTagList(lines[i].tags, &inLines[i].tagCount); } BNDisassemblyTextLine* result = nullptr; @@ -2317,6 +2319,7 @@ vector<DisassemblyTextLine> DisassemblyTextRenderer::PostProcessInstructionTextL line.instrIndex = result[i].instrIndex; line.highlight = result[i].highlight; line.tokens = InstructionTextToken::ConvertAndFreeInstructionTextTokenList(result[i].tokens, result[i].count); + line.tags = Tag::ConvertAndFreeTagList(result[i].tags, result[i].tagCount); outLines.push_back(line); } |
