kernel/arch: Make arch_debug_get_caller() a macro implemented by a builtin.
Only the x86 and PPC implementations look like they would have worked, while the builtin is available and will work across all architectures. We already use it unconditionally in some parts of libroot. Change-Id: I2dffb3b2c7cdd605092382b9d649151adb921bb4 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6942 Tested-by: Commit checker robot <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
d0c34f9331
commit
ef9e2f627b
@@ -33,9 +33,10 @@ using BKernel::Thread;
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define arch_debug_get_caller() __builtin_return_address(0)
|
||||
|
||||
status_t arch_debug_init(kernel_args *args);
|
||||
void arch_debug_stack_trace(void);
|
||||
void *arch_debug_get_caller(void);
|
||||
int32 arch_debug_get_stack_trace(addr_t* returnAddresses, int32 maxCount,
|
||||
int32 skipIframes, int32 skipFrames, uint32 flags);
|
||||
void* arch_debug_get_interrupt_pc(bool* _isSyscall);
|
||||
|
||||
Reference in New Issue
Block a user