summaryrefslogtreecommitdiff
path: root/python/examples/breakpoint.py
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2022-01-27 22:43:28 -0500
committerKyleMiles <krm504@nyu.edu>2022-01-28 00:24:06 -0500
commit6812c973c9fa9b4ad642ab81856c05f87bd6fcc4 (patch)
treedace4156d03148bcaf02df138ab4e0d93e61bc6f /python/examples/breakpoint.py
parent519c9db22367f2659d1a54599fab47e6313be06e (diff)
Format All Files
Diffstat (limited to 'python/examples/breakpoint.py')
-rw-r--r--python/examples/breakpoint.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/python/examples/breakpoint.py b/python/examples/breakpoint.py
index ab2ccfa5..20ff2b6b 100644
--- a/python/examples/breakpoint.py
+++ b/python/examples/breakpoint.py
@@ -18,7 +18,6 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
-
from binaryninja.plugin import PluginCommand
from binaryninja.log import log_error
@@ -29,12 +28,7 @@ def write_breakpoint(view, start, length):
register_for_address
register_for_function
"""
- bkpt_str = {
- "x86": "int3",
- "x86_64": "int3",
- "armv7": "bkpt",
- "aarch64": "brk #0",
- "mips32": "break"}
+ bkpt_str = {"x86": "int3", "x86_64": "int3", "armv7": "bkpt", "aarch64": "brk #0", "mips32": "break"}
if view.arch.name not in bkpt_str:
log_error("Architecture %s not supported" % view.arch.name)