summaryrefslogtreecommitdiffstats
path: root/documentation/Debugging in Qemu
diff options
context:
space:
mode:
authorRegia König2022-08-15 17:09:30 +0200
committerRegia König2022-08-15 17:09:30 +0200
commitc74fca5e3c4ff12865c57ba83702ae6586fa45a8 (patch)
treef0d590a026973f26ef3b576dbf463b7d3b75fb43 /documentation/Debugging in Qemu
parentMore documentation and test.sh is updated to use monitor at stdio (diff)
downloadmemtest86-c74fca5e3c4ff12865c57ba83702ae6586fa45a8.tar.gz
memtest86-c74fca5e3c4ff12865c57ba83702ae6586fa45a8.tar.xz
memtest86-c74fca5e3c4ff12865c57ba83702ae6586fa45a8.zip
More documentation
Diffstat (limited to 'documentation/Debugging in Qemu')
-rw-r--r--documentation/Debugging in Qemu41
1 files changed, 41 insertions, 0 deletions
diff --git a/documentation/Debugging in Qemu b/documentation/Debugging in Qemu
new file mode 100644
index 0000000..6d43b3e
--- /dev/null
+++ b/documentation/Debugging in Qemu
@@ -0,0 +1,41 @@
+#########################################
+# #
+# Ways to debug in Qemu #
+# #
+#########################################
+
+DEBUGCON
+###############
+
+-debugcon file:debug.log -global isa-debugcon.iobase=0x402
+
+SERIAL
+###############
+
+-serial stdio
+ redirects the virtual serial port to the host's terminal i/o
+
+TRACE
+###############
+
+-D ./qemu_log.txt
+-d guest_errors, nochain, exec, in_asm, out_asm, op, op_opt, op_ind, int, cpu, mmu, pcall, cpu_reset, unimp, page
+
+--trace "memory_region*"
+
+MONITOR
+###############
+
+-monitor stdio
+
+or
+
+Ctrl + Alt + 2 (Exit with Ctrl + Alt + 1)
+
+GDB - GNU DEBUGGER
+#####################
+
+-s -S (when starting qemu)
+
+(gdb) target remote localhost:1234
+(gdb) c