summaryrefslogtreecommitdiff
path: root/basicblock.cpp
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2018-06-04 14:12:26 -0400
committerRusty Wagner <rusty@vector35.com>2018-06-04 14:12:26 -0400
commitbfa6fce83383e7be1458a917f8e6dbf71bdab28b (patch)
tree58f7d373f6298bbbac70911cd661627b316c011b /basicblock.cpp
parentc09ae6ce7bd652dbb6e1a4f73d5a8a51440ec1ff (diff)
Generic flow graph API and report collections
Diffstat (limited to 'basicblock.cpp')
-rw-r--r--basicblock.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/basicblock.cpp b/basicblock.cpp
index 33f57d40..9cf9ed56 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++)
{