mirror of
https://git.rtems.org/rtems-tools/
synced 2025-06-01 19:43:50 +08:00

These files allow you to trace malloc, calloc, realloc and free. With a simple script you can see what is allocated and never freed.
26 lines
440 B
INI
Executable File
26 lines
440 B
INI
Executable File
;
|
|
; RTEMS C Library Trace Configurations
|
|
;
|
|
[libc-heap]
|
|
headers = libc-heap-headers
|
|
defines = libc-heap-defines
|
|
signatures = libc-heap-signatures
|
|
|
|
[libc-heap-all]
|
|
trace = malloc
|
|
trace = calloc
|
|
trace = realloc
|
|
trace = free
|
|
|
|
[libc-heap-headers]
|
|
header = "#include <stdlib.h>"
|
|
|
|
[libc-heap-defines]
|
|
; Currently empty
|
|
|
|
[libc-heap-signatures]
|
|
malloc = void*, size_t
|
|
calloc = void*, size_t, size_t
|
|
realloc = void*, void*, size_t
|
|
free = void, void*
|