scripts/dump-guest-memory.py: Make methods functions
commit47890203842de8b29716bdffb406ca851e70829d
authorJanosch Frank <frankja@linux.vnet.ibm.com>
Fri, 22 Jan 2016 12:08:36 +0000 (22 13:08 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 26 Jan 2016 14:58:14 +0000 (26 15:58 +0100)
tree1c43a07ac1c179cc4d7c3b6625a2c3d45b93cc7e
parentca81ce72b4d12494424d1813c6437035c1f89a8c
scripts/dump-guest-memory.py: Make methods functions

The functions dealing with qemu components rarely used parts of the
class, so they were moved out of the class.

As the uintptr_t variable is needed both within and outside the class,
it was made a constant and moved to the top.

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