From bfa6fce83383e7be1458a917f8e6dbf71bdab28b Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Mon, 4 Jun 2018 14:12:26 -0400 Subject: Generic flow graph API and report collections --- binaryview.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'binaryview.cpp') diff --git a/binaryview.cpp b/binaryview.cpp index 0a9a7118..18dd1bef 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -1460,6 +1460,7 @@ vector BinaryView::GetPreviousLinearDisassemblyLines(Line line.lineOffset = lines[i].lineOffset; line.contents.addr = lines[i].contents.addr; line.contents.instrIndex = lines[i].contents.instrIndex; + line.contents.highlight = lines[i].contents.highlight; line.contents.tokens.reserve(lines[i].contents.count); for (size_t j = 0; j < lines[i].contents.count; j++) { @@ -1509,6 +1510,7 @@ vector BinaryView::GetNextLinearDisassemblyLines(LinearDi line.lineOffset = lines[i].lineOffset; line.contents.addr = lines[i].contents.addr; line.contents.instrIndex = lines[i].contents.instrIndex; + line.contents.highlight = lines[i].contents.highlight; line.contents.tokens.reserve(lines[i].contents.count); for (size_t j = 0; j < lines[i].contents.count; j++) { @@ -1701,6 +1703,12 @@ void BinaryView::ShowHTMLReport(const string& title, const string& contents, con } +void BinaryView::ShowGraphReport(const string& title, FlowGraph* graph) +{ + BNShowGraphReport(m_object, title.c_str(), graph->GetGraphObject()); +} + + bool BinaryView::GetAddressInput(uint64_t& result, const string& prompt, const string& title) { uint64_t currentAddress = 0; -- cgit v1.3.1