def _set_debugger_location(self): location = self.debugger.file_manager.get_current_location() Logger.debug("Stop at {0}".format(location)) if location and location[0]: run_on_gui(self.set_exec_line, location[0], location[1])
def _read_data(self, debugger, stream_attr, data_tag): stream_file = getattr(debugger.io_manager, stream_attr) if Console.is_data_available(stream_file): data = stream_file.readline() if len(data) > 0: run_on_gui(self._write_on_ui, data, data_tag)
def _handle_process_state_change(self, state, event_data): if state == ProcessState.Exited: run_on_gui( self.add_status_message, "Process exited with code {0}.".format(event_data.return_code)) elif state == ProcessState.Stopped: location = self.app.debugger.file_manager.get_current_location() if location and location[0]: run_on_gui( self.add_status_message, "Process stopped at {0}:{1} - {2}".format( location[0], location[1], event_data.stop_reason)) else: run_on_gui( self.add_status_message, "Process stopped - {0}".format(event_data.stop_reason)) elif state == ProcessState.Running: run_on_gui(self.add_status_message, "Process is running...")
def _handle_process_state_change(self, state, event_data): if state == ProcessState.Exited: run_on_gui(self.add_status_message, "Process exited with code {0}.".format( event_data.return_code)) elif state == ProcessState.Stopped: location = self.app.debugger.file_manager.get_current_location() if location and location[0]: run_on_gui(self.add_status_message, "Process stopped at {0}:{1} - {2}" .format(location[0], location[1], event_data.stop_reason)) else: run_on_gui(self.add_status_message, "Process stopped - {0}" .format(event_data.stop_reason)) elif state == ProcessState.Running: run_on_gui(self.add_status_message, "Process is running...")
def update_registers(self): run_on_gui(self._update_register_gui, self.debugger.variable_manager.get_registers())
def _handle_heap_change(self, heap): """ @type heap: list of debugeee.HeapBlock """ run_on_gui(self.update_blocks, heap)
def _handle_process_state_change(self, state, event_data): if state == ProcessState.Running: run_on_gui(self.textview.set_editable, True) else: run_on_gui(self.textview.set_editable, False)
def _handle_thread_change(self, thread): run_on_gui(self._load_threads)
def _handle_process_state_change(self, state, event_data): if state == ProcessState.Stopped: self._set_debugger_location() elif state == ProcessState.Exited: run_on_gui(self.unset_exec_line)
def _select_row_auto(self, row): self.auto_select = True run_on_gui(self._select_row_auto_callback, row)
def _handle_process_change(self, state, event): if state == ProcessState.Exited: run_on_gui(self.clear_children) elif state == ProcessState.Stopped: run_on_gui(self._load_threads)
def _handle_frame_change(self, frame): run_on_gui(self._load_frames)
def _change_state(self, item_name, sensitive=True): run_on_gui(self._change_state_ui, item_name, sensitive)