]> git.saurik.com Git - apple/xnu.git/blobdiff - tools/lldbmacros/pmap.py
xnu-4570.61.1.tar.gz
[apple/xnu.git] / tools / lldbmacros / pmap.py
index 9b4f711e4c0db6c59dd482e9ede16c87aea05884..6f9bbb6ecc7b8abba724a5b2c8fca68a91947af6 100755 (executable)
@@ -118,7 +118,7 @@ def KDPWritePhysMEM(address, intval, bits):
     if not WriteInt32ToMemoryAddress(0, input_address):
         return False
 
-    kdp_pkt_size = GetType('kdp_writephysmem64_req_t').GetByteSize()
+    kdp_pkt_size = GetType('kdp_writephysmem64_req_t').GetByteSize() + (bits / 8)
     if not WriteInt32ToMemoryAddress(kdp_pkt_size, len_address):
         return False