On Tue, Mar 24, 2009 at 08:08:38PM +0200, Avi Kivity wrote:
I'd suggest a 'format' argument, so we can extend this later to dump
in non-ELF formats (the Windows native memory dump format would be
useful).
No problem. I was thinking of something similar --
(qemu) dump | winfmt > win.dmp
or
(qemu) dump | /usr/bin/gdbfmt > just.like.vmcore
or
(qemu) dump > raw.elf [normal case for crash utility]
with qemu providing a dump primitive (just the data) to be dressed up
by tools distributed with qemu, or contributed, or home grown.
The | and > are just to be explicit, it could be prettier.