浏览代码

Increase unwind table stack size

GDB binary seems to need 2
Gary Guo 2 年之前
父节点
当前提交
c72e9cb824
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/unwinder/frame.rs

+ 1 - 1
src/unwinder/frame.rs

@@ -27,7 +27,7 @@ const fn next_value(x: usize) -> usize {
 
 impl<R: gimli::Reader> gimli::UnwindContextStorage<R> for StoreOnStack {
     type Rules = [(Register, RegisterRule<R>); next_value(MAX_REG_RULES)];
-    type Stack = [UnwindTableRow<R, Self>; 1];
+    type Stack = [UnwindTableRow<R, Self>; 2];
 }
 
 #[cfg(feature = "dwarf-expr")]