MCPcopy Create free account
hub / github.com/ElementsProject/lightning / add_backtrace

Function add_backtrace

common/memleak.c:287–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285}
286
287static void add_backtrace(tal_t *parent UNUSED, enum tal_notify_type type UNNEEDED,
288 void *child)
289{
290 struct tal_backtrace *tbt = tal_label(child, struct tal_backtrace, "tal_backtrace");
291
292 tbt->steals = NULL;
293 tbt->alloc.n = 0;
294 backtrace_simple(backtrace_state, 2, record_compact_bt, NULL, &tbt->alloc);
295 tal_add_notifier(child, TAL_NOTIFY_ADD_CHILD, add_backtrace);
296 tal_add_notifier(child, TAL_NOTIFY_STEAL, add_steal);
297}
298
299static void add_backtrace_notifiers(const tal_t *root)
300{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected