Re: Address of return address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mahmood Naderan via gcc-help wrote on 07/06/2018 07:46 AM:

Hi

The C function __builtin_return_address(0) is able to return the "return address" and that is a hex value. How can I get the address of "return address"? I mean the memory location which holds the return address.

It seems that &__builtin_return_address(0) is invalid.

Does the following help?:
https://gcc.gnu.org/onlinedocs/gcc/Return-Address.html





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux