Lines Matching refs:self
60 def __init__(self): argument
61 super(_ZirconPrefix, self).__init__("%s" % (_ZIRCON_COMMAND_PREFIX),
69 def __init__(self): argument
70 super(_InfoZircon, self).__init__("info %s" % (_ZIRCON_COMMAND_PREFIX),
78 def __init__(self): argument
79 super(_SetZircon, self).__init__("set %s" % (_ZIRCON_COMMAND_PREFIX),
87 def __init__(self): argument
88 super(_ShowZircon, self).__init__("show %s" % (_ZIRCON_COMMAND_PREFIX),
105 def __init__(self): argument
106 super(_ZirconMaxInfoThreads, self).__init__(
109 self.value = 1000
111 def get_show_string(self, pvalue): argument
114 def get_set_string(self): argument
117 if self.value is None:
120 value = self.value
136 def __init__(self): argument
137 super(_ZirconMaxInfoProcesses, self).__init__(
140 self.value = 1000
142 def get_show_string(self, pvalue): argument
145 def get_set_string(self): argument
148 if self.value is None:
151 value = self.value
167 def __init__(self): argument
168 super(_ZirconMaxInfoHandles, self).__init__(
171 self.value = 1000
173 def get_show_string(self, pvalue): argument
176 def get_set_string(self): argument
179 if self.value is None:
182 value = self.value
343 def __init__(self): argument
344 super(_InfoZirconThreads, self).__init__("info %s threads" % (_ZIRCON_COMMAND_PREFIX),
347 def invoke(self, arg, from_tty): argument
403 def __init__(self): argument
404 super(_InfoZirconProcesses, self).__init__("info %s processes" % (_ZIRCON_COMMAND_PREFIX),
407 def invoke(self, arg, from_tty): argument
471 def __init__(self): argument
472 super(_InfoZirconHandles, self).__init__("info %s handles" % (_ZIRCON_COMMAND_PREFIX),
475 def invoke(self, arg, from_tty): argument
520 def __init__(self): argument
521 super(_ZirconKernelExceptionUnwinder, self).__init__(
524 self.value = True
526 def get_show_string(self, pvalue): argument
527 value = "enabled" if self.value else "disabled"
530 def get_set_string(self): argument
533 value = "enabled" if self.value else "disabled"
543 def __init__(self, sp, pc): argument
544 self.sp = sp
545 self.pc = pc
569 def __init__(self): argument
570 super(_Amd64KernelExceptionUnwinder, self).__init__("AMD64 kernel exception unwinder")
573 self.uintptr_t = gdb.lookup_type("uintptr_t")
575 self.uint32_t = gdb.lookup_type("unsigned int")
576 self.iframe_ptr_t = gdb.lookup_type("x86_iframe_t").pointer()
579 self.at_iframe_setup = self.lookup_minsym(_Amd64KernelExceptionUnwinder.AT_IFRAME_SETUP)
580 …self.interrupt_common_begin_addr = self.lookup_minsym(_Amd64KernelExceptionUnwinder.INTERRUPT_COMM…
582 def is_in_icommon(self, pc): argument
586 if self.at_iframe_setup is not None and pc == self.at_iframe_setup:
589 if self.interrupt_common_begin_addr is None:
591 end_addr = self.interrupt_common_begin_addr + 64
592 return pc >= self.interrupt_common_begin_addr and pc < end_addr
594 def __call__(self, pending_frame): argument
601 pc = pending_frame.read_register("rip").cast(self.uintptr_t)
603 if not self.is_in_icommon(pc):
605 sp = pending_frame.read_register("rsp").cast(self.uintptr_t)
607 iframe = sp.cast(self.iframe_ptr_t)
609 if self.is_user_space(iframe):
611 frame_id = self.FrameId(sp, pc)
630 unwind_info.add_saved_register("eflags", iframe["flags"].cast(self.uint32_t))
802 def __init__(self): argument
803 self._is_valid = False
806 def is_valid(self): argument
807 if gdb.Breakpoint.is_valid(self) == False:
809 return self._is_valid
812 def stop(self): argument
814 gdb.events.stop.connect(self._stop_callback_internal)
819 def _stop_callback_internal(self, event): argument
820 gdb.events.stop.disconnect(self._stop_callback_internal)
821 self.delete()
824 self._stop_callback(event)
834 def __init__(self, pc): argument
835 KASLRBreakpoint.__init__(self)
845 self._relocated_base_offset = kernel_relocated_base
849 self._relocated_base_offset -= base_address
856 self._relocated_base_offset -= base_address
857 self._relocated_base_offset += addr
865 self._is_valid = True
866 gdb.Breakpoint.__init__(self, "*0x%x" % self._relocated_base_offset,
871 self.silence = True
874 def _stop_callback(self, event): argument
876 _offset_symbols_and_breakpoints(self._relocated_base_offset)
885 def __init__(self): argument
886 KASLRBreakpoint.__init__(self)
899 self._is_valid = True
900 gdb.Breakpoint.__init__(self, "*0x%x" % _start, internal=True)
901 self.silence = True
905 def _stop_callback(self, event): argument