A context-manager that disable all memory breakpoints and restore them on exit
(self, target=None)
| 1020 | |
| 1021 | @contextmanager |
| 1022 | def DisabledMemoryBreakpoint(self, target=None): |
| 1023 | """A context-manager that disable all memory breakpoints and restore them on exit""" |
| 1024 | data = self.disable_all_memory_breakpoints(target) |
| 1025 | try: |
| 1026 | yield |
| 1027 | finally: |
| 1028 | if not self._killed_in_action(): |
| 1029 | self.restore_all_memory_breakpoints(data, target) |
| 1030 | |
| 1031 | def get_exception_bitness(self, exc): |
| 1032 | """Return the bitness in which the exception occured. |
no test coverage detected