> > which breaks __builtin_return_address(0).
> Here __builtin_return_address(0) doesn't use the frame-pointer (%ebp) at
> all. It gets the address of the caller from %esp that obviously has to
> remain valid since first or before you have to run `ret`. So as you are
> able to run `ret` you are able to grab the return address of the function
> at any time even without a frame pointer.
oops, then it was higher-order (eg. __builtin_return_address(1)) that
works only with a valid %ebp frame pointer. anyway, a show() function
probably shows us more about the call path of the process.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
Please read the FAQ at http://www.tux.org/lkml/