我想获取调用者函数的返回地址。我正在使用__builtin_return_address()function,但如果我给出的索引值大于 0,它将返回NULL.
__builtin_return_address()
NULL
请帮我解决这个问题,或者告诉我任何其他功能来获得相同的效果。
c linux linux-device-driver linux-kernel
c ×1
linux ×1
linux-device-driver ×1
linux-kernel ×1