Forced unwind tables - still bugged

This commit is contained in:
2025-03-06 01:01:04 +00:00
parent bc51f3ec43
commit f197149d80
4 changed files with 31 additions and 5 deletions
+4 -2
View File
@@ -50,7 +50,7 @@ impl FallibleIterator for Unwinder {
if self.is_first {
self.is_first = false;
return Ok(Some(CallFrame { pc }));
return Ok(Some(CallFrame { pc, symbol: 0 }));
}
// This is a row in the virtual unwind table AKA the CFI which will help
@@ -121,7 +121,7 @@ impl FallibleIterator for Unwinder {
// the caller function).
self.regs.set_stack_ptr(self.cfa);
Ok(Some(CallFrame { pc }))
Ok(Some(CallFrame { pc, symbol: 0 }))
}
// fn next(&mut self) -> Option<Result<Option<CallFrame>, UnwinderError>> {}
}
@@ -209,6 +209,8 @@ impl RegisterSet {
pub struct CallFrame {
/// The current instruction pointer.
pub pc: u64,
/// The symbol of the function.
pub symbol: usize,
}
#[derive(Debug)]