Beispiel #1
0
    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])
Beispiel #2
0
    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)
Beispiel #3
0
 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...")
Beispiel #4
0
 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...")
Beispiel #5
0
 def update_registers(self):
     run_on_gui(self._update_register_gui,
                self.debugger.variable_manager.get_registers())
Beispiel #6
0
 def _handle_heap_change(self, heap):
     """
     @type heap: list of debugeee.HeapBlock
     """
     run_on_gui(self.update_blocks, heap)
Beispiel #7
0
 def _handle_heap_change(self, heap):
     """
     @type heap: list of debugeee.HeapBlock
     """
     run_on_gui(self.update_blocks, heap)
Beispiel #8
0
 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)
Beispiel #9
0
 def _handle_thread_change(self, thread):
     run_on_gui(self._load_threads)
Beispiel #10
0
 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)
Beispiel #11
0
 def _select_row_auto(self, row):
     self.auto_select = True
     run_on_gui(self._select_row_auto_callback, row)
Beispiel #12
0
 def _handle_thread_change(self, thread):
     run_on_gui(self._load_threads)
Beispiel #13
0
 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)
Beispiel #14
0
 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)
Beispiel #16
0
 def _handle_frame_change(self, frame):
     run_on_gui(self._load_frames)
Beispiel #17
0
 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)
Beispiel #18
0
 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)
Beispiel #19
0
 def _select_row_auto(self, row):
     self.auto_select = True
     run_on_gui(self._select_row_auto_callback, row)
Beispiel #20
0
 def _change_state(self, item_name, sensitive=True):
     run_on_gui(self._change_state_ui, item_name, sensitive)