Skip to content

Commit

Permalink
enables disabling patterns plugin for the thumb binaries as well (#1507)
Browse files Browse the repository at this point in the history
Like #1481 but makes it work for the thumb binaries. Long story,
the thumb plugin is also using a signal that is provided by the
patterns plugin so when `--no-patterns` is specified for a thumb
binary the disassembly is failng.

Thanks to @bmourad01 for reporting!
  • Loading branch information
ivg authored Jun 8, 2022
1 parent 6ac55d6 commit a972f8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/arm/semantics/thumb-patterns.lisp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(in-package bap)

(declare (context (target arm)))
(declare (context (target arm)
(patterns enabled)))

(defmethod bap:patterns-action (action addr attrs)
(when (= action 'setcontext)
Expand Down

0 comments on commit a972f8a

Please sign in to comment.