node/lib/metasm/metasm/cpu/dalvik/decode.rb
# returns a DecodedFunction suitable for :default
# uses disassembler_default_bt{for/bind}_callback
returns a DecodedFunction suitable for :default
uses disassembler_default_bt{for/bind}_callback
returns a DecodedFunction suitable for : default uses disassembler_default_bt { for / bind } _callback
def disassembler_default_func
		df = DecodedFunction.new
		ra = Indirection[:callstack, @size/8]
		df.backtracked_for << BacktraceTrace.new(ra, :default, ra, :x, nil)
		df.backtrace_binding[:callstack] = Expression[:callstack, :+, @size/8]
		df.btfor_callback = lambda { |dasm, btfor, funcaddr, calladdr|
			if funcaddr != :default
				btfor
			elsif di = dasm.decoded[calladdr] and di.opcode.props[:saveip]
				btfor
			else []
			end
		}
		df
	end
def disassembler_default_func df = DecodedFunction . new ra = Indirection [ :callstack , @size / 8 ] df . backtracked_for << BacktraceTrace . new ( ra , :default , ra , :x , nil ) df . backtrace_binding [ :callstack ] = Expression [ :callstack , :+ , @size / 8 ] df . btfor_callback = lambda { | dasm , btfor , funcaddr , calladdr | if funcaddr != :default btfor elsif di = dasm . decoded [ calladdr ] and di . opcode . props [ :saveip ] btfor else [ ] end } df end
returns a DecodedFunction suitable for :default
uses disassembler_default_bt{for/bind}_callback
returns a DecodedFunction suitable for : default uses disassembler_default_bt { for / bind } _callback