node/lib/metasm/metasm/debug.rb
# return all breakpoints set on a specific address (or all bp)
return all breakpoints set on a specific address (or all bp)
return all breakpoints set on a specific address ( or all bp )
def all_breakpoints(addr=nil)
		ret = []
		if addr
			if b = @breakpoint[addr]
				ret |= b.hash_shared
			end
		else
			@breakpoint.each_value { |bb| ret |= bb.hash_shared }
		end
		@breakpoint_thread.each_value { |bb|
			next if addr and bb.address != addr
			ret |= bb.hash_shared
		}
		@breakpoint_memory.each_value { |bb|
			next if addr and (bb.address+bb.internal[:len] <= addr or bb.address > addr)
			ret |= bb.hash_shared
		}
		ret
	end
def all_breakpoints ( addr = nil ) ret = [ ] if addr if b = @breakpoint [ addr ] ret |= b . hash_shared end else @breakpoint . each_value { | bb | ret |= bb . hash_shared } end @breakpoint_thread . each_value { | bb | next if addr and bb . address != addr ret |= bb . hash_shared } @breakpoint_memory . each_value { | bb | next if addr and ( bb . address + bb . internal [ :len ] <= addr or bb . address > addr ) ret |= bb . hash_shared } ret end
return all breakpoints set on a specific address (or all bp)
return all breakpoints set on a specific address ( or all bp )
addr