Fix calcul of full_page_events (translate events to set) in remove_bp

This commit is contained in:
Clement Rouault
2016-07-18 17:40:50 +02:00
parent 98a481ca93
commit 2fec6a68b1
+1 -1
View File
@@ -295,7 +295,7 @@ class Debugger(object):
target.virtual_protect(page_addr, PAGE_SIZE, cp_watch_page[page_addr].original_prot, None)
del cp_watch_page[page_addr]
else:
full_page_events = set.union(*[bp.events for bp in cp_watch_page[page_addr].bps])
full_page_events = set.union(*[set(bp.events) for bp in cp_watch_page[page_addr].bps])
protection_for_page = self._compute_page_access_for_event(target, full_page_events)
target.virtual_protect(page_addr, PAGE_SIZE, protection_for_page, None)
return True