Forced unwind tables - still bugged
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user