feat(riscv): implement frame pointer option for backtracing

This commit is contained in:
Omar Chebib
2024-07-24 18:25:14 +08:00
parent 50cd05c4ac
commit 980cf269c7
12 changed files with 232 additions and 14 deletions
@@ -81,7 +81,6 @@ class PanicTestDut(IdfDut):
pass
def expect_backtrace(self, corrupted: bool = False) -> None:
assert self.is_xtensa, 'Backtrace can be printed only on Xtensa'
match = self.expect(r'Backtrace:( 0x[0-9a-fA-F]{8}:0x[0-9a-fA-F]{8})+(?P<corrupted> \|<-CORRUPTED)?')
if corrupted:
assert match.group('corrupted')