summaryrefslogtreecommitdiffstats
path: root/documentation/Debugging in Qemu
blob: 6d43b3e172de60fede32393ecc59562be687d9cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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