diff options
| author | Peter LaFosse <peter@vector35.com> | 2017-01-07 16:08:08 -0500 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2017-01-07 16:08:08 -0500 |
| commit | 9d1cac8ee55553cdb20c36deb3b15c9219b02d9b (patch) | |
| tree | 1b3297c8ca4d7b58341095567173b2fff89e1ed2 /python/examples/breakpoint.py | |
| parent | 27911e9d6625d8f8acf900a4753c1833dd96ffe0 (diff) | |
More fixes for refactor
Diffstat (limited to 'python/examples/breakpoint.py')
| -rw-r--r-- | python/examples/breakpoint.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/examples/breakpoint.py b/python/examples/breakpoint.py index e694329b..b1297e26 100644 --- a/python/examples/breakpoint.py +++ b/python/examples/breakpoint.py @@ -21,7 +21,6 @@ from binaryninja.plugin import PluginCommand from binaryninja.log import log_error -from binaryninja.architecture import Architecture def write_breakpoint(view, start, length): @@ -40,7 +39,8 @@ def write_breakpoint(view, start, length): if view.arch.name not in bkpt_str: log_error("Architecture %s not supported" % view.arch.name) return - bkpt, err = Architecture[view.arch.name].assemble(bkpt_str[view.arch.name]) + + bkpt, err = view.arch.assemble(bkpt_str[view.arch.name]) if bkpt is None: log_error(err) return |
