Skip to content

Instantly share code, notes, and snippets.

View roywei's full-sized avatar
🎯
Focusing

Lai Wei roywei

🎯
Focusing
View GitHub Profile
@barathrm
barathrm / main.c
Last active April 12, 2023 10:11
example usage of libbacktrace with hacked-in support for dlpi_name and dlpi_addr
#include <backtrace.h>
struct backtrace_state* bt_state = NULL;
void bt_error_callback(void* data, const char* msg, int errno)
{
fprintf(stderr, "bt_error %d: %s\n", errno, msg);
}
struct syminfo