(self, ptr)
MenuItem AddWatchpoint
MenuItem AddWatchpoint
MenuItem AddWatchpoint
def _on_addwatchpoint(self, ptr):
        """ MenuItem AddWatchpoint
        """
        if isinstance(ptr, int):
            str_fmt = '0x{0:X}'
            if not self.uppercase_hex:
                str_fmt = '0x{0:x}'
            ptr = str_fmt.format(ptr)

        if not self._app_window.dwarf.dwarf_api('isAddressWatched', int(
                ptr, 16)):
            self.onAddWatchpoint.emit(ptr)
def _on_addwatchpoint ( self , ptr ) : if isinstance ( ptr , int ) : str_fmt = '0x{0:X}' if not self . uppercase_hex : str_fmt = '0x{0:x}' ptr = str_fmt . format ( ptr ) if not self . _app_window . dwarf . dwarf_api ( 'isAddressWatched' , int ( ptr , 16 ) ) : self . onAddWatchpoint . emit ( ptr )