]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm: Add some single-step debugging and don't stop running
authorPekka Enberg <penberg@cs.helsinki.fi>
Sat, 27 Mar 2010 08:58:58 +0000 (10:58 +0200)
committerPekka Enberg <penberg@cs.helsinki.fi>
Sat, 27 Mar 2010 08:58:58 +0000 (10:58 +0200)
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>
tools/kvm/main.c

index 329925b61cd13f16f6840c4a6fddc441d54da733..5c022df82eb9c277bfbf87a68df7bae69325c0c2 100644 (file)
@@ -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,