[PATCH] riscv: add backtrace support

Ben Dooks ben.dooks at codethink.co.uk
Wed Jun 14 19:15:52 CEST 2023


On 14/06/2023 07:25, Bo Gan wrote:
> 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.

I will have a look at this, but testing may not be easy as the
setup we're using has limited SPL space.

-- 
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius

https://www.codethink.co.uk/privacy.html



More information about the U-Boot mailing list