gctf2023/pwn/flipper/dist/common/include/util/backtrace.h

16 lines
502 B
C
Raw Normal View History

2023-11-24 18:11:34 +00:00
#pragma once
#include "arch_backtrace.h"
/**
* Get the pointer where the current function has been called from.
* @param offset the call depth
* 0 ... the point where this function has been called
* 1 ... the point where the calling function has been called from
* x ... the point where the x'th function call happened
* @return the call pointer in case it could be resolved
* @return 0 in case the call could not be resolved
*/
pointer getCalledBefore(size_t offset);