node/lib/metasm/samples/dasm-plugins/bookmark.rb
# an api to bookmark a function
an api to bookmark a function
an api to bookmark a function
def bookmark_function(addr, color)
		return if not fa = find_function_start(addr)
		list = function_blocks(fa).map { |k, v| block_at(k).list.map { |di| di.address } }.flatten
		bookmark_addrs list, color
	end
def bookmark_function ( addr , color ) return if not fa = find_function_start ( addr ) list = function_blocks ( fa ) . map { | k , v | block_at ( k ) . list . map { | di | di . address } } . flatten bookmark_addrs list , color end
an api to bookmark a function
an api to bookmark a function
addr
color