[PATCH] riscv: add backtrace support

Bo Gan ganboing at gmail.com
Wed Jun 14 08:25:34 CEST 2023


On 5/25/23 4:05 AM, Ben Dooks wrote:
> On 15/05/2023 14:03, Ben Dooks wrote:
>> When debugging, it is useful to have a backtrace to find
>> out what is in the call stack as the previous function (RA)
>> may not have been the culprit.
>>
>> Since this adds size to the build, do not add it by default
>> and avoid putting it in the SPL build if not needed.
> 
> Hi, has anyone had time to review this?
> 

Hi Ben, this looks really useful. I'd like to use it in SPL,
but I'm unable to enable CONFIG_SPL_FRAMEPOINTER=y. It's likely
that you need to add a SPL_FRAMEPOINTER entry to Kconfig as well.


More information about the U-Boot mailing list