Skip to content

Commit

Permalink
inspect-binexport: fix xref symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
williballenthin committed Jan 30, 2024
1 parent f236ff2 commit 2202dc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/inspect-binexport2.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ def get_function_name_by_address(be2: BinExport2, address: int) -> str:
if callees_by_vertex_index[vertex_index] or callers_by_vertex_index[vertex_index]:
o.writeln("xrefs:")

for caller_index in callees_by_vertex_index[vertex_index]:
for caller_index in callers_by_vertex_index[vertex_index]:
o.writeln(f" ← {get_function_name_by_vertex(be2, caller_index)}")

for callee_index in callers_by_vertex_index[vertex_index]:
for callee_index in callees_by_vertex_index[vertex_index]:
o.writeln(f" → {get_function_name_by_vertex(be2, callee_index)}")

if vertex.address not in flow_graph_index_by_address:
Expand Down

0 comments on commit 2202dc7

Please sign in to comment.