-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNotes_jk
More file actions
47 lines (24 loc) · 753 Bytes
/
Notes_jk
File metadata and controls
47 lines (24 loc) · 753 Bytes
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
42
43
44
45
46
Running
. make qemu-nox
With gdb
. make qemu-nox-gdb
. gdb (on another window)
Exit
QEMU
. CTRL-A + X
GDB
. quit
TODO
. 'make xv6.pdf'
Miscellaneous
. objdump random binary file
'objdump -b binary -m i386 -D randomFile'
.... Update GDB cheatsheet
https://youtu.be/xQ0ONbt-qPs
list - examine your source code from within the debugger
watch, rwatch - set a watch for when a variable is written or read: return to the debugger once this happens
set var name=value set the value of variable "name" to "value"
bt - show the call frames for your program
frame # - set the current frame to #. Variables you reference etc. will be those within that context.
https://pdos.csail.mit.edu/6.828/2018/labguide.html
...