From 5e63f13b7b11454de8699f8199dd1b1add231392 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Sun, 25 Oct 2020 20:16:25 +0700 Subject: [PATCH] enable backtrace for some BSD OSs --- src/symbolize/gimli.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/symbolize/gimli.rs b/src/symbolize/gimli.rs index 19ec5da61..948705d46 100644 --- a/src/symbolize/gimli.rs +++ b/src/symbolize/gimli.rs @@ -358,6 +358,10 @@ cfg_if::cfg_if! { } else if #[cfg(any( target_os = "linux", target_os = "fuchsia", + target_os = "freebsd", + target_os = "netbsd", + target_os = "openbsd", + target_os = "dragonfly", ))] { // Other Unix (e.g. Linux) platforms use ELF as an object file format // and typically implement an API called `dl_iterate_phdr` to load