node/lib/metasm/metasm/debug.rb
# sets a memory breakpoint
# mtype is :r :w :rw or :x
# mlen is the size of the memory zone to cover
sets a memory breakpoint
mtype is :r :w :rw or :x
mlen is the size of the memory zone to cover
sets a memory breakpoint mtype is : r : w : rw or : x mlen is the size of the memory zone to cover
def bpm(addr, mtype=:r, mlen=4096, oneshot=false, cond=nil, &action)
		h = { :type => :bpm }
		addr = resolve_expr(addr) if not addr.kind_of? ::Integer
		h[:hash_key] = addr & -4096	
		h[:internal] = { :type => mtype, :len => mlen }
		h[:oneshot] = true if oneshot
		h[:condition] = cond if cond
		h[:action] = action if action
		add_bp(addr, h)
	end
def bpm ( addr , mtype = :r , mlen = 4096 , oneshot = false , cond = nil , & action ) h = { :type => :bpm } addr = resolve_expr ( addr ) if not addr . kind_of? :: Integer h [ :hash_key ] = addr & - 4096 h [ :internal ] = { :type => mtype , :len => mlen } h [ :oneshot ] = true if oneshot h [ :condition ] = cond if cond h [ :action ] = action if action add_bp ( addr , h ) end
sets a memory breakpoint
mtype is :r :w :rw or :x
mlen is the size of the memory zone to cover
sets a memory breakpoint mtype is : r : w : rw or : x mlen is the size of the memory zone to cover
# XXX actually referenced at addr, addr+4096, ... addr+len
addr
mtype
mlen
oneshot
cond
action