Esempio n. 1
0
 def writeWord(self, address, word):
     """
     Address have to be aligned!
     """
     debug("Write word %s at %s" %
           (formatWordHex(word), formatAddress(address)))
     ptrace_poketext(self.pid, address, word)
Esempio n. 2
0
 def writeWord(self, address, word):
     """
     Address have to be aligned!
     """
     debug("Write word %s at %s" % (
         formatWordHex(word), formatAddress(address)))
     ptrace_poketext(self.pid, address, word)
Esempio n. 3
0
    def writeWord(self, address, word):
        """
        Address have to be aligned!
        """
        if word >= (1 << 63):
            from struct import pack, unpack
            word = pack("<Q", word)
            word = unpack("<q", word)[0]

        ptrace_poketext(self.pid, address, word)
Esempio n. 4
0
 def writeWord(self, address, word):
     """
     Address have to be aligned!
     """
     ptrace_poketext(self.pid, address, word)
Esempio n. 5
0
 def writeWord(self, address, word):
     """
     Address have to be aligned!
     """
     ptrace_poketext(self.pid, address, word)