File tree Expand file tree Collapse file tree 4 files changed +18
-0
lines changed Expand file tree Collapse file tree 4 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -1715,6 +1715,7 @@ fn test_freebsd(target: &str) {
1715
1715
"dlfcn.h" ,
1716
1716
"elf.h" ,
1717
1717
"errno.h" ,
1718
+ "execinfo.h" ,
1718
1719
"fcntl.h" ,
1719
1720
"glob.h" ,
1720
1721
"grp.h" ,
Original file line number Diff line number Diff line change @@ -1154,6 +1154,9 @@ arc4random_buf
1154
1154
arc4random_uniform
1155
1155
arphdr
1156
1156
atof
1157
+ backtrace
1158
+ backtrace_symbols
1159
+ backtrace_symbols_fd
1157
1160
bpf_dltlist
1158
1161
bpf_hdr
1159
1162
bpf_insn
Original file line number Diff line number Diff line change @@ -1340,6 +1340,9 @@ arc4random_buf
1340
1340
arc4random_uniform
1341
1341
arphdr
1342
1342
atof
1343
+ backtrace
1344
+ backtrace_symbols
1345
+ backtrace_symbols_fd
1343
1346
bpf_dltlist
1344
1347
bpf_hdr
1345
1348
bpf_insn
Original file line number Diff line number Diff line change @@ -1682,6 +1682,17 @@ extern "C" {
1682
1682
pub fn login_tty ( fd : :: c_int ) -> :: c_int ;
1683
1683
}
1684
1684
1685
+ #[ link( name = "execinfo" ) ]
1686
+ extern "C" {
1687
+ pub fn backtrace ( addrlist : * mut * mut :: c_void , len : :: size_t ) -> :: size_t ;
1688
+ pub fn backtrace_symbols ( addrlist : * const * mut :: c_void , len : :: size_t ) -> * mut * mut :: c_char ;
1689
+ pub fn backtrace_symbols_fd (
1690
+ addrlist : * const * mut :: c_void ,
1691
+ len : :: size_t ,
1692
+ fd : :: c_int ,
1693
+ ) -> :: c_int ;
1694
+ }
1695
+
1685
1696
cfg_if ! {
1686
1697
if #[ cfg( target_os = "freebsd" ) ] {
1687
1698
mod freebsd;
You can’t perform that action at this time.
0 commit comments