summaryrefslogtreecommitdiff
path: root/functiongraphblock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'functiongraphblock.cpp')
-rw-r--r--functiongraphblock.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/functiongraphblock.cpp b/functiongraphblock.cpp
index 47261453..99ce2e08 100644
--- a/functiongraphblock.cpp
+++ b/functiongraphblock.cpp
@@ -1,4 +1,4 @@
-// Copyright (c) 2015-2016 Vector 35 LLC
+// Copyright (c) 2015-2017 Vector 35 LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
@@ -101,6 +101,8 @@ const vector<DisassemblyTextLine>& FunctionGraphBlock::GetLines()
token.value = lines[i].tokens[j].value;
token.size = lines[i].tokens[j].size;
token.operand = lines[i].tokens[j].operand;
+ token.context = lines[i].tokens[j].context;
+ token.address = lines[i].tokens[j].address;
line.tokens.push_back(token);
}
result.push_back(line);
@@ -126,8 +128,7 @@ const vector<FunctionGraphEdge>& FunctionGraphBlock::GetOutgoingEdges()
{
FunctionGraphEdge edge;
edge.type = edges[i].type;
- edge.target = edges[i].target;
- edge.arch = edges[i].arch ? new CoreArchitecture(edges[i].arch) : nullptr;
+ edge.target = edges[i].target ? new BasicBlock(BNNewBasicBlockReference(edges[i].target)) : nullptr;
edge.points.insert(edge.points.begin(), &edges[i].points[0], &edges[i].points[edges[i].pointCount]);
result.push_back(edge);
}