- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to figure out a way to identify and print the mallocs on the heap. When I define WICED_ENABLE_MALLOC_DEBUG, the compiler can't find malloc_debug.h (and, neither can I).
I've searched some threads, to no avail.
Is there any advice on how best to print what specific mallocs are on the stack?
Thanks!
Solved! Go to Solution.
- Labels:
-
ispn:38946:1:0
-
l1:314:1:0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You can find the malloc_debug.h file from the path in WICED:
43xxx_Wi-Fi/libraries/test/malloc_debug/malloc_debug.h
Please enable WICED_ENABLE_MALLOC_DEBUG to extend the malloc definitions to the functions defined in the malloc_debug.c file.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You can find the malloc_debug.h file from the path in WICED:
43xxx_Wi-Fi/libraries/test/malloc_debug/malloc_debug.h
Please enable WICED_ENABLE_MALLOC_DEBUG to extend the malloc definitions to the functions defined in the malloc_debug.c file.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Excellent, thank you. I found that I needed to include test/malloc_debug under "components" in the make file. This did compile and is successfully dumping the info.