@@ -113,6 +113,7 @@ class BINARYNINJAUIAPI FlowGraphWidget: public QAbstractScrollArea, public View,
113
113
uint64_t m_addrAfterLayout;
114
114
bool m_pendingXrefNavigation, m_xrefNavigation;
115
115
uint64_t m_xrefTarget;
116
+ size_t m_indexAfterlayout;
116
117
117
118
InstructionEdit* m_instrEdit;
118
119
@@ -163,8 +164,8 @@ class BINARYNINJAUIAPI FlowGraphWidget: public QAbstractScrollArea, public View,
163
164
void navigateToAddress (uint64_t addr);
164
165
void navigateToGotoLabel (uint64_t label);
165
166
166
- void setGraphInternal (FlowGraphRef graph, FlowGraphHistoryEntry* entry, bool useAddr, uint64_t addr, bool notify,
167
- bool recenterWithPreviousGraph);
167
+ void setGraphInternal (FlowGraphRef graph, FlowGraphHistoryEntry* entry, bool useAddr, uint64_t addr,
168
+ bool notify, bool recenterWithPreviousGraph, size_t index = BN_INVALID_EXPR );
168
169
169
170
void up (bool selecting, size_t count = 1 );
170
171
void down (bool selecting, size_t count = 1 );
@@ -198,6 +199,7 @@ class BINARYNINJAUIAPI FlowGraphWidget: public QAbstractScrollArea, public View,
198
199
199
200
void setGraph (FlowGraphRef graph);
200
201
void setGraph (FlowGraphRef graph, uint64_t addr);
202
+ void setGraphAtIndex (FlowGraphRef graph, size_t index);
201
203
void setGraph (FlowGraphRef graph, FlowGraphHistoryEntry* entry);
202
204
void setRelatedGraph (FlowGraphRef graph);
203
205
void setRelatedGraph (FlowGraphRef graph, uint64_t addr);
@@ -211,6 +213,7 @@ class BINARYNINJAUIAPI FlowGraphWidget: public QAbstractScrollArea, public View,
211
213
virtual void setSelectionOffsets (BNAddressRange range) override ;
212
214
virtual bool navigate (uint64_t pos) override ;
213
215
virtual bool navigateToFunction (FunctionRef func, uint64_t pos) override ;
216
+ virtual bool navigateToFunctionIndex (FunctionRef func, size_t index) override ;
214
217
bool navigateWithHistoryEntry (uint64_t addr, FlowGraphHistoryEntry* entry);
215
218
bool navigateWithHistoryEntry (FunctionRef func, uint64_t addr, FlowGraphHistoryEntry* entry);
216
219
void setNavigationTarget (View* target) { m_navigationTarget = target; }
@@ -258,6 +261,7 @@ class BINARYNINJAUIAPI FlowGraphWidget: public QAbstractScrollArea, public View,
258
261
void paintEdge (QPainter& p, const FlowGraphNodeRef& node, const BinaryNinja::FlowGraphEdge& edge);
259
262
260
263
void showAddress (uint64_t addr, bool select = false );
264
+ void showIndex (size_t index);
261
265
void showTopNode ();
262
266
void showNode (FlowGraphNodeRef node);
263
267
void showLineInNode (FlowGraphNodeRef node, size_t lineIndex);
0 commit comments