示例#1
0
    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)
示例#2
0
    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)
示例#3
0
    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')
示例#4
0
    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')