How can I disable compile optimization in kernel for friendly debugging, Thanks

valdis.kletnieks at vt.edu valdis.kletnieks at vt.edu
Sat Apr 21 16:06:06 EDT 2018


On Sat, 21 Apr 2018 21:15:10 +0800, Yubin Ruan said:

> From this, I have a related question, can I treat __builtin_return_address()
> as a "builtin" stack unwinder (but only check for return addresses, or, where
> a function is called).

It would seem possible, but it doesn't actually work that way. There's a reason why
the kernel includes its own stack unwinder.



More information about the Kernelnewbies mailing list