]> git.proxmox.com Git - mirror_qemu.git/commit - scripts/dump-guest-memory.py
dump-guest-memory.py: fix No symbol "vmcoreinfo_find"
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 1 Dec 2017 11:37:44 +0000 (12:37 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 1 Dec 2017 17:05:58 +0000 (19:05 +0200)
commitd36d0a9d152316a41e02c2613a71f5859f407da1
tree081edc47ff21d006bfe0ee33cb3f5523c04a6440
parent2ae39a113af311cb56a0c35b7f212dafcef15303
dump-guest-memory.py: fix No symbol "vmcoreinfo_find"

When qemu is compiled without debug, the dump gdb python script can fail with:

Error occurred in Python command: No symbol "vmcoreinfo_find" in current context.

Because vmcoreinfo_find() is inlined and not exported.

Use the underlying object_resolve_path_type() to get the instance instead.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
scripts/dump-guest-memory.py