]> git.proxmox.com Git - mirror_qemu.git/blobdiff - scripts/dump-guest-memory.py
qapi/schema: Clean up around QAPISchemaEntity.connect_doc()
[mirror_qemu.git] / scripts / dump-guest-memory.py
index 198cd0fe40f0f177fa71fedeb7cf21d4d0927125..4177261d33d4141d7ba7081a88a66a5820927514 100644 (file)
@@ -12,7 +12,6 @@ Authors:
 This work is licensed under the terms of the GNU GPL, version 2 or later. See
 the COPYING file in the top-level directory.
 """
-from __future__ import print_function
 
 import ctypes
 import struct
@@ -163,13 +162,14 @@ class ELF(object):
         phdr = get_arch_phdr(self.endianness, self.elfclass)
         phdr.p_type = p_type
         phdr.p_paddr = p_paddr
+        phdr.p_vaddr = p_paddr
         phdr.p_filesz = p_size
         phdr.p_memsz = p_size
         self.segments.append(phdr)
         self.ehdr.e_phnum += 1
 
     def to_file(self, elf_file):
-        """Writes all ELF structures to the the passed file.
+        """Writes all ELF structures to the passed file.
 
         Structure:
         Ehdr