def run(self, thread=None): self.setup() if LLDBPlugin.ensure_lldb_is_running(self.window): sublime.status_message('Debugging session started.') else: sublime.error_message('Couldn\'t get a debugging session.') return False if thread is None: thread = driver_instance().current_thread() if not thread: return False base_reg_view = get_lldb_output_view(self.window, lldb_register_view_name(thread)) if isinstance(base_reg_view, LldbRegisterView): reg_view = base_reg_view else: reg_view = LLDBRegisterView(base_reg_view, thread) reg_view.full_update() self.window.focus_view(reg_view.base_view())
def __init__(self, view, thread): self.__thread = thread super(LLDBRegisterView, self).__init__(view) self.set_name(lldb_register_view_name(thread)) self.set_scratch()