summaryrefslogtreecommitdiff
path: root/080_blog/00015_Admin/00010_Various-Cheat-Sheets
diff options
context:
space:
mode:
Diffstat (limited to '080_blog/00015_Admin/00010_Various-Cheat-Sheets')
-rw-r--r--080_blog/00015_Admin/00010_Various-Cheat-Sheets/00120_GDB/index.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/080_blog/00015_Admin/00010_Various-Cheat-Sheets/00120_GDB/index.md b/080_blog/00015_Admin/00010_Various-Cheat-Sheets/00120_GDB/index.md
new file mode 100644
index 0000000..5aebdf3
--- /dev/null
+++ b/080_blog/00015_Admin/00010_Various-Cheat-Sheets/00120_GDB/index.md
@@ -0,0 +1,29 @@
+# GDB
+
+ http://www.cprogramming.com/debuggers.html
+
+ use gcc or clang with : -ggdb -O0
+
+ h - help
+
+ r - run
+ c - continue
+ n - next
+ s - step
+
+ b - break <line>
+ p - print <var>
+
+ wa - watch <var>
+
+ bt
+ frame <number>
+ list
+ info locals
+
+ set <var> = <value>
+ set substitute-path FROM TO
+
+ call <func>
+
+