| 285 | } |
| 286 | |
| 287 | static 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 | |
| 299 | static void add_backtrace_notifiers(const tal_t *root) |
| 300 | { |
nothing calls this directly
no outgoing calls
no test coverage detected