diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2010-03-27 10:58:58 +0200 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-06-01 16:39:38 +0100 |
commit | fe806d65705f0e96ea6a82c369d3d2511bc716fd (patch) | |
tree | 3ea2c26ddddcd9b110a2736e9aae1bf695912cac /main.c | |
parent | 2a601aafee4175081688a2347764d0e2bfa1230e (diff) | |
download | kvmtool-fe806d65705f0e96ea6a82c369d3d2511bc716fd.tar.gz |
kvm: Add some single-step debugging and don't stop running
Now that we can execute some instructions, don't stop on first single step but
dump some debugging output instead and continue running.
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -36,6 +36,10 @@ int main(int argc, char *argv[]) kvm__run(kvm); switch (kvm->kvm_run->exit_reason) { + case KVM_EXIT_DEBUG: + kvm__show_registers(kvm); + kvm__show_code(kvm); + break; case KVM_EXIT_IO: kvm__emulate_io(kvm, kvm->kvm_run->io.port, |