From 21613ef6f34273fd50876f153f9899dab7eccada Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Wed, 7 Mar 2018 16:58:05 +0000 Subject: dev c added datatypes and debugging --- dev/c/debugging.html | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 dev/c/debugging.html (limited to 'dev/c/debugging.html') diff --git a/dev/c/debugging.html b/dev/c/debugging.html new file mode 100644 index 0000000..d1f425b --- /dev/null +++ b/dev/c/debugging.html @@ -0,0 +1,67 @@ + + + + + Debugging + + + Development Index + +

Debugging

+ +

If the program needs arguments you can set it;

+ +
+        (gdb)set args -parameter1 -parameter2
+        
+ + +
+        b - backtrace
+        info locals
+        print
+        x
+        catch syscall open
+        
+ +

When new thread is created you receive + a notification. To get information about + threads;

+ +
+        info threads
+        
+ +

To select thread;

+ +
+        thread 1
+        
+ +
+        break linespec thread threadno
+        
+ +
+        strace -c ./program
+        
+ + +

C program with autotools + GDB Quick Start, + Learning C with GDB + and Memory Layout and the Stack + are great sources of introductory information. + Stopping and Starting + multi-thread programs

+ + Development Index + +

+ This is part of the c9-doc Manual. + Copyright (C) 2018 + c9 team. + See the file Gnu Free Documentation License + for copying conditions.

+ + -- cgit 1.4.1-2-gfad0