diff options
| author | Rusty Wagner <rusty@vector35.com> | 2018-09-05 14:39:46 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2018-09-05 14:39:46 -0400 |
| commit | f4d75c9229d2d76f36f80e97dd49c7aece242600 (patch) | |
| tree | 0390fc2b624149274c5c01b847d59698055a2974 /basicblock.cpp | |
| parent | c02c863367ff88c1e562a1110e069bf2842798aa (diff) | |
| parent | e51031010b107089dd7b5b69039ac42b856a0769 (diff) | |
Merge branch 'test_stack_adjust' into dev
Diffstat (limited to 'basicblock.cpp')
| -rw-r--r-- | basicblock.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/basicblock.cpp b/basicblock.cpp index 13b3e7a8..9fc8d8aa 100644 --- a/basicblock.cpp +++ b/basicblock.cpp @@ -72,6 +72,21 @@ void DisassemblySettings::SetMaximumSymbolWidth(size_t width) } +DisassemblyTextLine::DisassemblyTextLine() +{ + addr = 0; + instrIndex = BN_INVALID_EXPR; + highlight.style = StandardHighlightColor; + highlight.color = NoHighlightColor; + highlight.mixColor = NoHighlightColor; + highlight.mix = 0; + highlight.r = 0; + highlight.g = 0; + highlight.b = 0; + highlight.alpha = 0; +} + + BasicBlock::BasicBlock(BNBasicBlock* block) { m_object = block; @@ -277,6 +292,7 @@ vector<DisassemblyTextLine> BasicBlock::GetDisassemblyText(DisassemblySettings* DisassemblyTextLine line; line.addr = lines[i].addr; line.instrIndex = lines[i].instrIndex; + line.highlight = lines[i].highlight; line.tokens.reserve(lines[i].count); for (size_t j = 0; j < lines[i].count; j++) { |
