node/lib/metasm/metasm/debug.rb
def check_bpm_range(b, info)
		return if b.address+b.internal[:len] <= info[:fault_addr]
		return if b.address >= info[:fault_addr] + info[:fault_len]
		case b.internal[:type]
		when :r; info[:fault_access] == :r	# or info[:fault_access] == :x
		when :w; info[:fault_access] == :w
		when :x; info[:fault_access] == :x	# XXX non-NX cpu => check pc is in bpm range ?
		when :rw; true
		end
	end
# returns true if the fault described in info is valid to trigger b
returns true if the fault described in info is valid to trigger b
returns true if the fault described in info is valid to trigger b
def check_bpm_range(b, info)
		return if b.address+b.internal[:len] <= info[:fault_addr]
		return if b.address >= info[:fault_addr] + info[:fault_len]
		case b.internal[:type]
		when :r; info[:fault_access] == :r	
		when :w; info[:fault_access] == :w
		when :x; info[:fault_access] == :x	
		when :rw; true
		end
	end
def check_bpm_range ( b , info ) return if b . address + b . internal [ :len ] <= info [ :fault_addr ] return if b . address >= info [ :fault_addr ] + info [ :fault_len ] case b . internal [ :type ] when :r ; info [ :fault_access ] == :r when :w ; info [ :fault_access ] == :w when :x ; info [ :fault_access ] == :x when :rw ; true end end
returns true if the fault described in info is valid to trigger b
returns true if the fault described in info is valid to trigger b
# or info[:fault_access] == :x # XXX non-NX cpu => check pc is in bpm range ?
b
info