def run(self, target=None): self.setup() if len(disabled_bps()) > 0: for bp in disabled_bps(): if bp: bp.SetEnabled(True) set_disabled_bps([]) msg = 'Breakpoints disabled.' else: # bps are enabled. Disable them if target is None: target = driver_instance().current_target() if target: assert (len(disabled_bps()) == 0) for bp in target.breakpoint_iter(): if bp and bp.IsEnabled(): disabled_bps().append(bp) bp.SetEnabled(False) msg = 'Breakpoints enabled.' self.status_message(msg)
def run(self, target=None): self.setup() if len(disabled_bps()) > 0: for bp in disabled_bps(): if bp: bp.SetEnabled(True) set_disabled_bps([]) msg = 'Breakpoints disabled.' else: # bps are enabled. Disable them if target is None: target = driver_instance().current_target() if target: assert(len(disabled_bps()) == 0) for bp in target.breakpoint_iter(): if bp and bp.IsEnabled(): disabled_bps().append(bp) bp.SetEnabled(False) msg = 'Breakpoints enabled.' self.status_message(msg)
def cleanup(cls, w=None): global _is_debugging _is_debugging = False set_disabled_bps([]) ui_updater().stop() driver = driver_instance() if driver: driver.stop() set_driver_instance(None) lldb_view_send('\nDebugging session ended.\n')