scripts/dump-guest-memory.py: Improve python 3 compatibility
commit7cb1089d5fbd7b2d9497f111ce948edef41df32d
authorJanosch Frank <frankja@linux.vnet.ibm.com>
Fri, 22 Jan 2016 12:08:37 +0000 (22 13:08 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 26 Jan 2016 14:58:14 +0000 (26 15:58 +0100)
treefe0ab079622503e537bb3dedc53d452722cb2ee2
parent47890203842de8b29716bdffb406ca851e70829d
scripts/dump-guest-memory.py: Improve python 3 compatibility

This commit does not make the script python 3 compatible, it is a
preparation that fixes the easy and common incompatibilities.

Print is a function in python 3 and therefore needs braces around its
arguments.

Range does not cast a gdb.Value object to int in python 3, we have to
do it ourselves.

Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Message-Id: <1453464520-3882-4-git-send-email-frankja@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/dump-guest-memory.py