From ee84e47238980b2100d88f410d01fefcb7aa1d16 Mon Sep 17 00:00:00 2001
From: Silvino
This is part of the Hive System Documentation.
Copyright (C) 2019
diff --git a/dev/c/datatypes.html b/dev/c/datatypes.html
index 77b5dbb..a5e1efd 100644
--- a/dev/c/datatypes.html
+++ b/dev/c/datatypes.html
@@ -5,7 +5,7 @@
This is part of the Hive System Documentation.
- Copyright (C) 2018
+ Copyright (C) 2019
Hive Team.
See the file Gnu Free Documentation License
for copying conditions. Check if the system have restrictions to attach to other processes or other hardening measures, check sysctl settings such as; kernel.yama.ptrace_scope; Before debug; After debug; If the program needs arguments you can set it;C - Basic
@@ -48,7 +48,7 @@
$ gcc -Wall main.c hello.c -o hello
- C & GDB Index
+ C Index
Datatypes
@@ -172,9 +172,9 @@
Debugging
+
+
+
+
+ # echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
+ # sysctl -w kernel.yama.ptrace_scope=0
+
+
+
+
+ # echo 1 | sudo tee /proc/sys/kernel/yama/ptrace_scope
+ # sysctl -w kernel.yama.ptrace_scope=1
+
+
+ GDB
+
@@ -74,8 +107,14 @@
break linespec thread threadno
+ Strace
+
+
+ $ strace -c ./program -o ~/program.strace
+
+
- strace -c ./program
+ $ strace -p 1337 -o ~/program.strace
@@ -87,11 +126,11 @@
Stopping and Starting
multi-thread programs
This is part of the Hive System Documentation. - Copyright (C) 2018 + Copyright (C) 2019 Hive Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/dev/c/elements.html b/dev/c/elements.html index 9e31adb..49871db 100644 --- a/dev/c/elements.html +++ b/dev/c/elements.html @@ -5,7 +5,7 @@White space is ignored except when separating elements.
- Development Index + C IndexThis is part of the Hive System Documentation. - Copyright (C) 2018 + Copyright (C) 2019 Hive Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/dev/c/hello.html b/dev/c/hello.html index ff31bc9..14c65e9 100644 --- a/dev/c/hello.html +++ b/dev/c/hello.html @@ -5,7 +5,7 @@This is part of the Hive System Documentation. Copyright (C) 2019 diff --git a/dev/c/index.html b/dev/c/index.html index 3c48776..0e54a13 100644 --- a/dev/c/index.html +++ b/dev/c/index.html @@ -70,8 +70,8 @@ -
This is part of the Hive System Documentation. - Copyright (C) 2018 + Copyright (C) 2019 Hive Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/dev/c/lib.html b/dev/c/lib.html index 4531d7a..5e3f1f7 100644 --- a/dev/c/lib.html +++ b/dev/c/lib.html @@ -5,7 +5,7 @@This is part of the Hive System Documentation. - Copyright (C) 2018 + Copyright (C) 2019 Hive Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/dev/c/system.html b/dev/c/system.html index 5312151..d2a7d1f 100644 --- a/dev/c/system.html +++ b/dev/c/system.html @@ -5,7 +5,7 @@This is part of the Hive System Documentation. - Copyright (C) 2018 + Copyright (C) 2019 Hive Team. See the file Gnu Free Documentation License for copying conditions.
-- cgit 1.4.1-2-gfad0