Esempio n. 1
0
 def _on_disasm_showmem(self, ptr, length):
     """ Address in Disasm was clicked
         adds temphighlight for bytes from current instruction
     """
     self.memory_panel.read_memory(ptr)
     self.memory_panel.add_highlight(HighLight('attention', utils.parse_ptr(ptr), length))
     self.show_main_tab('memory')
Esempio n. 2
0
 def _on_add_hook(self, hook):
     try:
         # set highlight
         ptr = hook.get_ptr()
         ptr = utils.parse_ptr(ptr)
         self.memory_panel.add_highlight(
             HighLight('hook', ptr, self.dwarf.pointer_size))
     except HighlightExistsError:
         pass
Esempio n. 3
0
 def _on_watcher_added(self, ptr):
     """ Watcher Entry was added
     """
     try:
         # set highlight
         self.memory_panel.add_highlight(
             HighLight('watcher', ptr, self.dwarf.pointer_size))
     except HighlightExistsError:
         pass