Skip to content

Commit 86e6e43

Browse files
committed
gdb python API, split more C and C++
1 parent 9e56d58 commit 86e6e43

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+2220
-753
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,9 @@ core.*
3232

3333
# Python tests runners.
3434
*.pyc
35+
36+
# Valgrind
37+
callgrind.out*
38+
39+
# perf
40+
perf.data*

Makefile_many

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ clean:
9393
if [ ! '$(OUT_DIR)' = './' ]; then \
9494
rm -rf '$(OUT_DIR)' ;\
9595
else \
96-
rm -rf *'$(OBJECT_EXT)' *'$(OUT_EXT)' *'$(TMP_EXT)' ;\
96+
rm -rf *'$(OBJECT_EXT)' *'$(OUT_EXT)' *'$(TMP_EXT)' callgrind.out.* ;\
9797
fi
9898

9999
debug: clean set_debug_flags all

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Relies on [C++ boilerplate](https://github.com/cirosantilli/cpp-boilerplate) to
1010

1111
1. [Getting started](getting-started.md)
1212
1. Featured
13-
1. [c.c](c.c): C cheatsheet, now being split into `c/`
1413
1. [C](c/)
1514
1. [C++](cpp/)
1615
1. [POSIX](posix/): POSIX C API
@@ -25,7 +24,10 @@ Relies on [C++ boilerplate](https://github.com/cirosantilli/cpp-boilerplate) to
2524
1. [C from C++](c-from-cpp/)
2625
1. [C++ from C](cpp-from-c/)
2726
1. [Fortran from C](fortran-from-c/)
28-
1. [gprof](gprof.md)
27+
1. Profiling
28+
1. [gprof](gprof.md)
29+
1. [Valgrind](valgrind.md)
30+
1. [perf](perf.md)
2931
1. [GDB](gdb/)
3032
1. [Boost](boost/)
3133
1. [CMake](cmake.md)

c-from-cpp/c.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define C_H
33

44
#ifdef __cplusplus
5-
// This is required otherwise he C includer will look
5+
// This is required otherwise he C++ includer will look
66
// for the undefined mangled name.
77
extern "C" {
88
#endif

c/README.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,33 @@
2828
1. [register](register.c)
2929
1. [volatile](volatile.c)
3030
1. User defined types
31-
1. [enum](enum.c)
32-
1. [typedef](typedef.c)
33-
1. [struct](struct.c)
34-
1. [union](union.c)
31+
1. [enum](enum.c)
32+
1. [typedef](typedef.c)
33+
1. [typedef function](typedef function.c)
34+
1. [struct](struct.c)
35+
1. [struct operators](struct_operators.c)
36+
1. [struct designated initializer](struct_designated_initializer.c)
37+
1. [Compound struct literal](compound_struct_literal.c)
38+
1. [union](union.c)
3539
1. Compile time operations
3640
1. [sizeof()](sizeof.c)
3741
1. [_Generic](generic.c)
3842
1. [Constant expression](constant_expression.c)
3943
1. [_Static_assert](static_assert.c)
4044
1. [Pointer](pointer.c)
45+
1. [void pointer](void_pointer.c)
46+
1. [NULL](null.c)
4147
1. Branching
4248
1. [if](if.c)
4349
1. [while](while.c)
4450
1. [switch](switch.c)
4551
1. [goto](goto.c)
4652
1. [Function](function.c)
4753
1. [Function pointer](function_pointer.c)
54+
1. [No return non-void](no_return_non_void.c)
4855
1. [inline](inline.c)
56+
1. [void parameter](void_parameter.c)
57+
1. [Parameter without name](parameter_without_name.c)
4958
1. [Static array argument](static_array_argument.c)
5059
1. [_Noreturn](noreturn.c)
5160
1. [Operator](operator.c)

0 commit comments

Comments
 (0)