| 47 | } |
| 48 | |
| 49 | static void extract_symname(void *data, uintptr_t pc, |
| 50 | const char *symname, |
| 51 | uintptr_t symval, |
| 52 | uintptr_t symsize) |
| 53 | { |
| 54 | const char **ret = data; |
| 55 | |
| 56 | /* ret is context to alloc off, and value to set */ |
| 57 | if (symname) |
| 58 | *ret = tal_strdup(*ret, symname); |
| 59 | else |
| 60 | *ret = NULL; |
| 61 | } |
| 62 | |
| 63 | const char *backtrace_symname(const tal_t *ctx, const void *addr) |
| 64 | { |
nothing calls this directly
no outgoing calls
no test coverage detected