Commit Graph

62 Commits

Author SHA1 Message Date
Taiki Endo
c88a9016fc Add RISC-V RV32 support 2023-03-26 23:23:15 +01:00
Felix Yan
3dba9da864 Correct a typo in x86_64.rs 2023-03-20 23:04:06 +00:00
Nick Spinale
02b5c86f89 Add fde-custom feature 2023-01-14 09:25:33 +00:00
Gary Guo
c72e9cb824 Increase unwind table stack size
GDB binary seems to need 2
2022-09-12 21:45:30 +01:00
Gary Guo
9217c76d3d Fix name for ForcedUnwind 2022-09-12 21:45:29 +01:00
Nick Spinale
fe407b61e1 Swap usage of drop_panic and foreign_exception 2022-09-08 18:26:30 +02:00
Gary Guo
e5bc3a1542 asm is stable 2022-02-24 23:17:26 +00:00
Louis Dupré Bertoni
e962a107bb Fix print macros without newline 2022-02-18 13:53:37 +00:00
Dan Gohman
35ad635000 Fix compilation on asm! for Rust nightly.
Add `use core::arch::asm;` in source files that use `asm!`, to fix
compilation on the latest Rust nightly.
2021-12-16 09:49:59 -08:00
Gary Guo
6eb9fc4e0f Reduce needed register rules depending on targets 2021-10-12 18:30:39 +01:00
Gary Guo
6f4bf61efb Prevent heap allocation during stack unwind 2021-10-12 18:13:28 +01:00
Gary Guo
bbd66f493a Use gimli::UnwindContext 2021-10-07 02:56:21 +01:00
Gary Guo
60a08d03b1 x86 unwinding support 2021-10-05 22:37:52 +01:00
Gary Guo
8e6e2d9954 x86 support for panicking 2021-10-05 22:37:52 +01:00
Gary Guo
56f2d3cb32 Reorg imports 2021-10-05 22:37:51 +01:00
Gary Guo
377945f07a Add some defensive #[inline(never)] 2021-10-05 22:27:35 +01:00
Gary Guo
2bba02748c Improve documentation 2021-10-05 00:53:26 +01:00
Gary Guo
88d34ea7ad Add generic panicking support 2021-10-05 00:30:16 +01:00
Gary Guo
5364967c0e Add method to get PHDR from aux vector 2021-10-04 23:01:26 +01:00
Dan Gohman
04a14677e4 Issue a friendlier error message if fde-registry is enabled with no lock impl. 2021-10-03 10:24:20 -07:00
Dan Gohman
a672291e9b Try fde-gnu-eh-frame-hdr before fde-phdr. 2021-10-02 11:05:17 -07:00
Dan Gohman
c40a114e23 Add a way to find .eh_frame_hdr using __GNU_EH_FRAME_HDR.
GNU ld on at least some platforms adds a symbol `__GNU_EH_FRAME_HDR` for
the `.eh_frame_hdr` section. Add a cargo feature `fde-gnu-eh-frame-hdr`
to enable use of this.
2021-10-02 10:13:04 -07:00
Gary Guo
32ad71301c Throw error if architecture is not supported 2021-09-06 23:33:30 +01:00
Gary Guo
789082f176 Add AArch64 support 2021-09-06 23:27:01 +01:00
Gary Guo
41e805c1cf Handle signal frame 2021-08-27 18:33:06 +01:00
Gary Guo
c970b0d1fb Fix warning 2021-08-26 22:40:56 +01:00
Gary Guo
f4dd644e67 Static FDE searcher 2021-08-26 22:40:10 +01:00
Gary Guo
0bb383ea30 Remove fp from RISC-V context if d is not enabled 2021-08-26 22:39:07 +01:00
Gary Guo
57b6852c97 RISC-V unwinder support 2021-08-26 12:58:22 +01:00
Gary Guo
f34aa1824f Fix build 2021-08-26 12:39:51 +01:00
Gary Guo
2212467faf Add riscv arch def 2021-08-26 12:38:45 +01:00
Gary Guo
62878b5995 Move arch code around 2021-08-26 12:35:20 +01:00
Gary Guo
1e46c7ea3a Allow unwinder to be turned off 2021-08-26 12:33:42 +01:00
Gary Guo
e1c7c1ae60 Refactor 2021-08-26 12:11:24 +01:00
Gary Guo
210e6def4c Add backtrace to panic-handler feature 2021-08-26 11:50:19 +01:00
Gary Guo
8e20d33822 Remove unsafe from signatures wihth callback 2021-08-26 11:49:38 +01:00
Gary Guo
af45cc8701 Move dummy panic handler to lib as well 2021-08-26 11:00:25 +01:00
Gary Guo
6e74064c7f Implement basic panic handler 2021-08-26 10:55:35 +01:00
Gary Guo
af031eb4b1 Panic utilities 2021-08-26 10:54:02 +01:00
Gary Guo
487ca98456 Add print helpers 2021-08-26 10:01:58 +01:00
Gary Guo
f0e87da0aa Implement rust personality 2021-08-26 09:56:15 +01:00
Gary Guo
e205fb9e64 Move dummy personality to libunwind 2021-08-26 09:54:17 +01:00
Gary Guo
bf908d9562 Relax &mut to &UnwindContext for accessors 2021-08-26 08:15:20 +01:00
Gary Guo
68baa798fb Add a feature gate to control whether hide self from trace 2021-08-26 05:40:08 +01:00
Gary Guo
a942d60e1a Allow dwarf expr support to be turned off 2021-08-26 05:37:45 +01:00
Gary Guo
d22df752ca Move the system allocator to libunwind as a feature 2021-08-26 05:27:35 +01:00
Gary Guo
f76376c101 Add a cdylib target 2021-08-26 05:01:50 +01:00
Gary Guo
7c07a5dbd9 Add helper methods to UnwindAction 2021-08-26 04:57:02 +01:00
Gary Guo
20ca20e7f8 Remove std dependency 2021-08-26 04:27:01 +01:00
Gary Guo
83537e0211 Gate FDE finder under features 2021-08-26 03:56:15 +01:00