Skip to content

Commit b522e61

Browse files
committed
add gdb note
1 parent 71db002 commit b522e61

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

MIT6.828-fa18/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
this is some note about learning MIT 6.828 fa18
33

44
- [lab1 note](./note/lab1-note.md)
5-
- [hw1-boot-xv6](./note/hw1-boot-xv6.md)
5+
- [hw1-boot-xv6](./note/hw1-boot-xv6.md)
6+
- [lec3-gdb-note.md](./note/lec3-gdb-note.md)

MIT6.828-fa18/lec/gdb_slides.pdf

138 KB
Binary file not shown.

MIT6.828-fa18/note/lec3-gdb-note.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
这是课件3,关于GDB内容的整理,一些常用指令: ```c,si,n,b```就不说了
3+
4+
- finish runs code until the current function returns.
5+
- advance \<location> runs code until the instruction pointer gets to the speci ed location.
6+
- Modify breakpoints using delete, disable, enable.
7+
- break \<location> if \<condition> sets a breakpoint at the speci ed location, but only breaks if the condition is satis ed.
8+
- cond <number> <condition> adds a condition on an existing breakpoint.
9+
- watch \<expression> will stop execution whenever the expression's value changes.
10+
- watch -l \<address> will stop execution whenever the contents of the speci ed memory address change.
11+
- info frame prints the current stack frame.
12+
- list <location> prints the source code of the function at the speci ed location.
13+
- backtrace might be useful as you work on lab 1!
14+
15+
更多内容可见 help
16+
or [gdb_slides.pdf](../lec/gdb_slides.pdf)
17+

0 commit comments

Comments
 (0)