Sha256: 4468cab1ab494dc4122440d3e1a962699c1973924b3ef779679a2a9d943b0adc

Contents?: true

Size: 446 Bytes

Versions: 2

Compression:

Stored size: 446 Bytes

Contents

module Indis
  module ARM
    module Analyzer
      
      class BLAnalyzer < Analyzer
        
        def initialize(target)
          super target, :instruction_mapped
        end
        
        def instruction_mapped(instr)
          return unless instr.class.name == :BL
          sym = @target.resolve_symbol_at_address(instr.branch_address)
          instr.tags[:branch_to_sym] = sym if sym
        end
      end
      
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
indis-arm-0.3.1 lib/indis-arm/analyzer/bl_analyzer.rb
indis-arm-0.3.0 lib/indis-arm/analyzer/bl_analyzer.rb