Luna/kernel/include/trace/StackTracer.h

15 lines
262 B
C
Raw Normal View History

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