]> git.proxmox.com Git - mirror_qemu.git/commit
dump: Set correct vaddr for ELF dump
authorJon Doron <arilou@gmail.com>
Wed, 9 Jan 2019 08:22:03 +0000 (10:22 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 6 Feb 2019 14:51:12 +0000 (15:51 +0100)
commite17bebd049d78f489c2cff755e2b66a0536a156e
treee1cf5f23f963680662ed5dfe2f2b66004f9ceeae
parent47994e16b1d66411953623e7c0bf0cdcd50bd507
dump: Set correct vaddr for ELF dump

vaddr needs to be equal to the paddr since the dump file represents the
physical memory image.

Without setting vaddr correctly, GDB would load all the different memory
regions on top of each other to vaddr 0, thus making GDB showing the wrong
memory data for a given address.

Signed-off-by: Jon Doron <arilou@gmail.com>
Message-Id: <20190109082203.27142-1-arilou@gmail.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Tested-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
dump.c
scripts/dump-guest-memory.py