Subversion Repositories freemyipod

Rev

Rev 475 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 475 Rev 478
Line 874... Line 874...
874
        return result.ptr
874
        return result.ptr
875
    
875
    
876
    @command()
876
    @command()
877
    def reownalloc(self, ptr, owner):
877
    def reownalloc(self, ptr, owner):
878
        """ Changes the owner of the memory allocation 'ptr' to the thread struct at addr 'owner' """
878
        """ Changes the owner of the memory allocation 'ptr' to the thread struct at addr 'owner' """
879
        self.logger.debug("Changing owner of the memory region 0x%x to 0x%x" % (ptr, owner))
879
        self.logger.debug("Changing owner of the memory region 0x%x to 0x%x\n" % (ptr, owner))
880
        return self.lib.monitorcommand(struct.pack("IIII", 55, ptr, owner, 0), "III", (None, None, None))
880
        return self.lib.monitorcommand(struct.pack("IIII", 55, ptr, owner, 0), "III", (None, None, None))
881
    
881
    
882
    @command()
882
    @command()
883
    def free(self, ptr):
883
    def free(self, ptr):
884
        """ Frees the memory space pointed to by 'ptr' """
884
        """ Frees the memory space pointed to by 'ptr' """