summaryrefslogtreecommitdiff
path: root/docs/dev/bnil-llil.md
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2023-05-01 14:16:57 -0400
committerPeter LaFosse <peter@vector35.com>2023-05-01 14:24:37 -0400
commit5d3e98685591b2521f8dc3151d9a3c36095401b6 (patch)
tree192470df14f1d8d3ca65609dd7d300dd6db743b3 /docs/dev/bnil-llil.md
parent9aa07762230234bf7222d2b2c19c1fe49ef71d9a (diff)
many fixes to missing links in documentation
Diffstat (limited to 'docs/dev/bnil-llil.md')
-rw-r--r--docs/dev/bnil-llil.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/dev/bnil-llil.md b/docs/dev/bnil-llil.md
index 5d59d3f0..df520e4e 100644
--- a/docs/dev/bnil-llil.md
+++ b/docs/dev/bnil-llil.md
@@ -36,7 +36,7 @@ Next, enter the following in the console:
This will print out all the LLIL instructions in the current function. How does this code work?
-First we use the global magic variable `current_function` which gives us the python object [`function.Function`](http://api.binary.ninja/function.Function.html) for whatever function is currently selected in the UI. The variable is only usable from the python console, and shouldn't be used for headless plugins. In a script you can either use the function that was passed in if you [registered your plugin](https://api.binary.ninja/binaryninja.plugin-module.html#binaryninja.plugin.PluginCommand.register_for_function) to handle functions, or you can compute the function based on [a specific address](https://api.binary.ninja/binaryninja.binaryview-module.html?highlight=get_functions_at#binaryninja.binaryview.BinaryView.get_functions_at), or maybe even just iterate over all the functions in a BinaryView (`for func in bv.functions:`).
+First we use the global magic variable `current_function` which gives us the python object [`function.Function`](https://api.binary.ninja/binaryninja.function-module.html#binaryninja.function.Function) for whatever function is currently selected in the UI. The variable is only usable from the python console, and shouldn't be used for headless plugins. In a script you can either use the function that was passed in if you [registered your plugin](https://api.binary.ninja/binaryninja.plugin-module.html#binaryninja.plugin.PluginCommand.register_for_function) to handle functions, or you can compute the function based on [a specific address](https://api.binary.ninja/binaryninja.binaryview-module.html?highlight=get_functions_at#binaryninja.binaryview.BinaryView.get_functions_at), or maybe even just iterate over all the functions in a BinaryView (`for func in bv.functions:`).
Next we get the [`lowlevelil.LowLevelILFunction`](http://api.binary.ninja/binaryninja.lowlevelil.LowLevelILFunction.html) from the `Function` class: `current_function.low_level_il`. Iterating over the `LowLevelILFunction` class provides access to the [`lowlevelil.LowLevelILBasicBlock`](http://api.binary.ninja/binaryninja.lowlevelil.LowLevelILBasicBlock.html) classes for this function. Inside the loop we can now iterate over the `LowLevelILBasicBlock` class which provides access to the individual [`lowlevelil.LowLevelILInstruction`](http://api.binary.ninja/binaryninja.lowlevelil.LowLevelILInstruction.html) classes.