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

Function json_add_backtrace

lightningd/memdump.c:108–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108static void json_add_backtrace(struct json_stream *response,
109 const uintptr_t *bt)
110{
111 size_t i;
112
113 if (!bt)
114 return;
115
116 json_array_start(response, "backtrace");
117 /* First one serves as counter. */
118 for (i = 1; i < bt[0]; i++) {
119 backtrace_pcinfo(backtrace_state,
120 bt[i], json_add_syminfo,
121 NULL, response);
122 }
123 json_array_end(response);
124}
125
126static void finish_report(const struct leak_detect *leaks)
127{

Callers 1

finish_reportFunction · 0.85

Calls 2

json_array_startFunction · 0.50
json_array_endFunction · 0.50

Tested by

no test coverage detected