diff options
-rw-r--r-- | dev/c/datatypes.html | 35 | ||||
-rw-r--r-- | dev/c/debugging.html | 67 | ||||
-rw-r--r-- | dev/index.html | 1 |
3 files changed, 103 insertions, 0 deletions
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 @@ +<!DOCTYPE html> +<html dir="ltr" lang="en"> + <head> + <meta charset='utf-8'> + <title>Datatypes</title> + </head> + <body> + <a href="../index.html">Development Index</a> + + <h1>Datatypes</h1> + + <h2 id="datatypes">Data types</h2> + + <h2 id="int">Integer</h2> + <h2 id="double">Real number</h2> + <h2 id="complex">Complex number</h2> + <h2 id="const">Enumeration</h2> + <h2 id="union">Unions</h2> + <h2 id="struct">Structures</h2> + <h2 id="array">Arrays</h2> + <h2 id="pointer">Pointers</h2> + <h2 id="it">Incomplete types</h2> + <h2 id="tq">Type qualifiers</h2> + <h2 id="st">Storage class</h2> + + <a href="../index.html">Development Index</a> + + <p> + This is part of the c9-doc Manual. + Copyright (C) 2018 + c9 team. + See the file <a href="../../fdl-1.3-standalone.html">Gnu Free Documentation License</a> + for copying conditions.</p> + </body> +</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 @@ +<!DOCTYPE html> +<html dir="ltr" lang="en"> + <head> + <meta charset='utf-8'> + <title>Debugging</title> + </head> + <body> + <a href="../index.html">Development Index</a> + + <h1>Debugging</h1> + + <p>If the program needs arguments you can set it;</p> + + <pre> + (gdb)set args -parameter1 -parameter2 + </pre> + + + <pre> + b - backtrace + info locals + print + x + catch syscall open + </pre> + + <p>When new thread is created you receive + a notification. To get information about + threads;</p> + + <pre> + info threads + </pre> + + <p>To select thread;</p> + + <pre> + thread 1 + </pre> + + <pre> + break linespec thread threadno + </pre> + + <pre> + strace -c ./program + </pre> + + + <p><a href="http://blog.fourthbit.com/2013/06/18/creating-an-open-source-program-in-c-with-autotools-part-1-of-2/">C program with autotools</a> + <a href="http://web.eecs.umich.edu/~sugih/pointers/gdbQS.html">GDB Quick Start</a>, + <a href="https://www.hackerschool.com/blog/5-learning-c-with-gdb">Learning C with GDB</a> + and <a href="http://www.dirac.org/linux/gdb/02a-Memory_Layout_And_The_Stack.php">Memory Layout and the Stack</a> + are great sources of introductory information. + <a href="http://ftp.gnu.org/old-gnu/Manuals/gdb/html_node/gdb_39.html#SEC40">Stopping and Starting</a> + multi-thread programs</p> + + <a href="../index.html">Development Index</a> + + <p> + This is part of the c9-doc Manual. + Copyright (C) 2018 + c9 team. + See the file <a href="../../fdl-1.3-standalone.html">Gnu Free Documentation License</a> + for copying conditions.</p> + </body> +</html> 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 @@ <li><a href="">Control Flow</a></li> <li><a href="">Functions</a></li> <li><a href="">Input & Output</a></li> + <li><a href="c/debugging.html">Debugging</a></li> <li><a href="c/system.html">System Development</a></li> </ul> |