def __init__(self, view, thread): self.__thread = thread super(LLDBThreadDisassemblyView, self).__init__(view) self.set_name(lldb_disassembly_view_name(thread.GetThreadID())) self.set_scratch() # FIXME: Just make every LLDBCodeView observe the settings. # Another way to do it would be for the class to observe and # then call the appropriate method on all the instances. for k in self.settings_keys: self.__sm.add_observer(k, self.setting_updated)
def __init__(self, view, thread): self.__thread = thread super(LLDBThreadDisassemblyView, self).__init__(view) self.set_name(lldb_disassembly_view_name(thread.GetThreadID())) self.set_scratch() # FIXME: Just make every LLDBCodeView observe the settings. # Another way to do it would be for the class to observe and # then call the appropriate method on all the instances. for k in self.settings_keys: self.__sm.add_observer(k, self.setting_updated)
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_disasm_view = get_lldb_output_view(self.window, lldb_disassembly_view_name(thread.GetThreadID())) if isinstance(base_disasm_view, LLDBThreadDisassemblyView): disasm_view = base_disasm_view else: disasm_view = LLDBThreadDisassemblyView(base_disasm_view, thread) disasm_view.full_update() self.window.focus_view(disasm_view.base_view())
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_disasm_view = get_lldb_output_view( self.window, lldb_disassembly_view_name(thread.GetThreadID())) if isinstance(base_disasm_view, LLDBThreadDisassemblyView): disasm_view = base_disasm_view else: disasm_view = LLDBThreadDisassemblyView(base_disasm_view, thread) disasm_view.full_update() self.window.focus_view(disasm_view.base_view())