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

Function backtrace_symname

common/daemon.c:63–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63const char *backtrace_symname(const tal_t *ctx, const void *addr)
64{
65 const char *ret = ctx;
66 if (!backtrace_state)
67 return tal_fmt(ctx, "%p (backtrace disabled)", addr);
68
69 if (!backtrace_syminfo(backtrace_state, (uintptr_t)addr,
70 extract_symname, NULL, &ret))
71 ret = NULL;
72
73 if (ret)
74 return ret;
75 return tal_fmt(ctx, "%p", addr);
76}
77
78static void crashdump(int sig)
79{

Callers 1

dev_report_fdsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected