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/datatypes.html | 35 +++++++++++++++++++++++++++ dev/c/debugging.html | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++ dev/index.html | 1 + 3 files changed, 103 insertions(+) create mode 100644 dev/c/datatypes.html create mode 100644 dev/c/debugging.html (limited to 'dev') diff --git a/dev/c/datatypes.html b/dev/c/datatypes.html new file mode 100644 index 0000000..6d6b76d --- /dev/null +++ b/dev/c/datatypes.html @@ -0,0 +1,35 @@ + + + + + Datatypes + + + Development Index + +

Datatypes

+ +

Data types

+ +

Integer

+

Real number

+

Complex number

+

Enumeration

+

Unions

+

Structures

+

Arrays

+

Pointers

+

Incomplete types

+

Type qualifiers

+

Storage class

+ + 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.

+ + 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.

+ + diff --git a/dev/index.html b/dev/index.html index 2dcc209..d84fa36 100644 --- a/dev/index.html +++ b/dev/index.html @@ -77,6 +77,7 @@
  • Control Flow
  • Functions
  • Input & Output
  • +
  • Debugging
  • System Development
  • -- cgit 1.4.1-2-gfad0