Код: Выделить всё
#include
#include
void signal_handler(int signal, siginfo_t* info, void* unused) {
if (signal != SIGSEGV) {
// Just here in case, I've never seen this hit
std::cerr
Подробнее здесь: [url]https://stackoverflow.com/questions/79082279/arm64-linux-handle-signal-in-userspace-program-by-jumping-to-pc-8[/url]
Мобильная версия