Skip to content

Commit

Permalink
CodeParser now emits :instruction_mapped event on every instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
farcaller committed Apr 17, 2012
1 parent ace30d6 commit 3088c74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/indis-arm/code_parser.rb
Expand Up @@ -44,6 +44,7 @@ def reparse_section(sect)
bytes = io.read(4)
i = build_instruction(virt_addr, bytes.unpack('V')[0])
@map.map(i)
@target.publish_event(:instruction_mapped, i)

if i.size == 2
io.ungetbyte(bytes[2..-1])
Expand Down

0 comments on commit 3088c74

Please sign in to comment.