scripts/dump-guest-memory.py: fix int128_get64 on recent gcc
commit9b4b157ef6edc5cf060aef3402bdece7f581b5a2
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 10 Mar 2017 11:28:19 +0000 (10 15:28 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Mar 2017 12:26:36 +0000 (14 13:26 +0100)
tree07e3f571ae2a99f1872b8b3cf86c70065cc5432b
parentca2edcd35cd1a8589dfa0533c19ff232fec7b4b5
scripts/dump-guest-memory.py: fix int128_get64 on recent gcc

The Int128 is no longer a struct, reaching a python exception:
Python Exception <class 'gdb.error'> Attempt to extract a component of a value that is not a (null).:

Replace struct access with a cast to uint64[] instead.

Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=1427466

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20170310112819.16760-1-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/dump-guest-memory.py