summaryrefslogtreecommitdiffstats
path: root/documentation/Debugging in Qemu
diff options
context:
space:
mode:
authorRegina König2022-09-07 23:24:55 +0200
committerRegina König2022-09-07 23:24:55 +0200
commit09e1b4fb40878ef29b8ca36b93172fcd89c70883 (patch)
treef731cd63f8a6511d1b1bbad6ed4eb01111e77995 /documentation/Debugging in Qemu
parenthiuhi (diff)
parentRename dir and experiment with cmdline options (diff)
downloadmemtest86-09e1b4fb40878ef29b8ca36b93172fcd89c70883.tar.gz
memtest86-09e1b4fb40878ef29b8ca36b93172fcd89c70883.tar.xz
memtest86-09e1b4fb40878ef29b8ca36b93172fcd89c70883.zip
Merge branch 'master' of git.openslx.org:openslx-ng/memtest86HEADmaster
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