From 5d7a23e5d38048d72243a18b60b6f5f7f3d805d2 Mon Sep 17 00:00:00 2001
From: Silvino Silva
+ 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 @@ + + + + +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 @@Allowed types are char and int;
+Real numbers are fractional numbers, all floating points + are signed. Check float.h.
+ +
+ enum colors {black, orange, blue} color;
+ enum colors color;
+
+
+ union accounts {
+ int id;
+ float value;
+ } first_account, second_account;
+
+
+ struct point {
+ int x, y;
+ } first_point;
+ struct point second_point;
+
+
+ int account_array[9];
+ int account_array[] = {0, 1, 2, 3};
+ int account_array[] = {0, 1, 2, [9] = 9};
+
+
+
+ int account_array[2][9] { {1,2,3},{9,8,7} }
+
+
+ Initializing string with individual characters the + null character must be defined;
+ +
+ char black[] = {'b', 'l', 'a', 'c', 'k', '\0'}
+
+
+ + char black[] = "black"; ++ +
+ union accounts {
+ int id;
+ float value;
+ };
+ union accounts accounts_array[9];
+ accounts_array[0].id = 8;
+
+
+
+ struct point {
+ int x, y;
+ };
+ struct point point_array[9];
+ point_array[0].x=2;
+ point_array[0].y=3;
+
+
- This is part of the c9-doc Manual. +
This is part of the c9 Manual. Copyright (C) 2018 c9 team. See the file Gnu Free Documentation License for copying conditions.
+