summaryrefslogtreecommitdiffstats
path: root/scripts/dump-guest-memory.py
diff options
context:
space:
mode:
authorPeter Maydell2018-01-22 12:37:49 +0100
committerPeter Maydell2018-01-22 12:37:49 +0100
commit6df555170437e28fe89aa11f3b0613026c41d1f9 (patch)
tree69700ee41e55de9b080490e709b1134116a75097 /scripts/dump-guest-memory.py
parentMerge remote-tracking branch 'remotes/jnsnow/tags/ide-pull-request' into staging (diff)
parentdump-guest-memory.py: fix python 2 support (diff)
downloadqemu-6df555170437e28fe89aa11f3b0613026c41d1f9.tar.gz
qemu-6df555170437e28fe89aa11f3b0613026c41d1f9.tar.xz
qemu-6df555170437e28fe89aa11f3b0613026c41d1f9.zip
Merge remote-tracking branch 'remotes/elmarco/tags/dump-pull-request' into staging
# gpg: Signature made Sat 20 Jan 2018 20:03:47 GMT # gpg: using RSA key 0xDAE8E10975969CE5 # gpg: Good signature from "Marc-André Lureau <marcandre.lureau@redhat.com>" # gpg: aka "Marc-André Lureau <marcandre.lureau@gmail.com>" # Primary key fingerprint: 87A9 BD93 3F87 C606 D276 F62D DAE8 E109 7596 9CE5 * remotes/elmarco/tags/dump-pull-request: dump-guest-memory.py: fix python 2 support Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'scripts/dump-guest-memory.py')
-rw-r--r--scripts/dump-guest-memory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dump-guest-memory.py b/scripts/dump-guest-memory.py
index 09bec92b50..03fbf69f8a 100644
--- a/scripts/dump-guest-memory.py
+++ b/scripts/dump-guest-memory.py
@@ -564,7 +564,7 @@ shape and this command should mostly work."""
vmcoreinfo = self.phys_memory_read(addr, size)
if vmcoreinfo:
- self.elf.add_vmcoreinfo_note(vmcoreinfo.tobytes())
+ self.elf.add_vmcoreinfo_note(bytes(vmcoreinfo))
def invoke(self, args, from_tty):
"""Handles command invocation from gdb."""