2022-09-19 19:11:43 +00:00
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
struct StackTracer
|
|
|
|
{
|
|
|
|
StackTracer();
|
|
|
|
StackTracer(uintptr_t base_pointer);
|
|
|
|
void trace();
|
2022-09-21 19:03:24 +00:00
|
|
|
void trace_with_ip(uintptr_t ip);
|
2022-09-19 19:11:43 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
uintptr_t m_base_pointer;
|
2022-09-29 16:35:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
bool stack_trace_contains(uintptr_t address);
|