node/lib/metasm/metasm/debug.rb
# sets a hardware breakpoint
# mtype in :r :w :x
# mlen is the size of the memory zone to cover
# mlen may be constrained by the architecture
sets a hardware breakpoint
mtype in :r :w :x
mlen is the size of the memory zone to cover
mlen may be constrained by the architecture
sets a hardware breakpoint mtype in : r : w : x mlen is the size of the memory zone to cover mlen may be constrained by the architecture
def hwbp(addr, mtype=:x, mlen=1, oneshot=false, cond=nil, &action)
		h = { :type => :hwbp }
		h[:hash_owner] = @breakpoint_thread
		addr = resolve_expr(addr) if not addr.kind_of? ::Integer
		mtype = mtype.to_sym
		h[:hash_key] = [addr, mtype, mlen]
		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 hwbp ( addr , mtype = :x , mlen = 1 , oneshot = false , cond = nil , & action ) h = { :type => :hwbp } h [ :hash_owner ] = @breakpoint_thread addr = resolve_expr ( addr ) if not addr . kind_of? :: Integer mtype = mtype . to_sym h [ :hash_key ] = [ addr , mtype , mlen ] 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 hardware breakpoint
mtype in :r :w :x
mlen is the size of the memory zone to cover
mlen may be constrained by the architecture
sets a hardware breakpoint mtype in : r : w : x mlen is the size of the memory zone to cover mlen may be constrained by the architecture
addr
mtype
mlen
oneshot
cond
action