mirror of
https://github.com/vmangos/core
synced 2026-08-14 16:29:10 -04:00
- Replace ACE with native OS APIs. - Remove TBB - Update gSOAP from `2.7.10` (2008) to `2.8.135` (2024) - Replace `backward.hpp` with `jeremy-rifkin/cpptrace`
14 lines
347 B
C++
14 lines
347 B
C++
#include <cstdint>
|
|
|
|
#include <unwind.h>
|
|
|
|
_Unwind_Reason_Code unwind_callback(_Unwind_Context* context, void* arg) {
|
|
_Unwind_GetIP(context);
|
|
int is_before_instruction = 0;
|
|
uintptr_t ip = _Unwind_GetIPInfo(context, &is_before_instruction);
|
|
return _URC_END_OF_STACK;
|
|
}
|
|
|
|
int main() {
|
|
_Unwind_Backtrace(unwind_callback, nullptr);
|
|
}
|