File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed
src/unix/bsd/netbsdlike/openbsd Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -393,6 +393,7 @@ fn test_openbsd(target: &str) {
393393 headers ! { cfg:
394394 "elf.h" ,
395395 "errno.h" ,
396+ "execinfo.h" ,
396397 "fcntl.h" ,
397398 "limits.h" ,
398399 "link.h" ,
Original file line number Diff line number Diff line change @@ -913,6 +913,10 @@ arc4random_buf
913913arc4random_uniform
914914arphdr
915915atof
916+ backtrace
917+ backtrace_symbols
918+ backtrace_symbols_fd
919+ backtrace_symbols_fmt
916920bsearch
917921caddr_t
918922calloc_conceal
Original file line number Diff line number Diff line change @@ -1606,6 +1606,22 @@ extern "C" {
16061606 pub fn calloc_conceal ( nmemb : :: size_t , size : :: size_t ) -> * mut :: c_void ;
16071607}
16081608
1609+ #[ link( name = "execinfo" ) ]
1610+ extern "C" {
1611+ pub fn backtrace ( addrlist : * mut * mut :: c_void , len : :: size_t ) -> :: size_t ;
1612+ pub fn backtrace_symbols ( addrlist : * const * mut :: c_void , len : :: size_t ) -> * mut * mut :: c_char ;
1613+ pub fn backtrace_symbols_fd (
1614+ addrlist : * const * mut :: c_void ,
1615+ len : :: size_t ,
1616+ fd : :: c_int ,
1617+ ) -> :: c_int ;
1618+ pub fn backtrace_symbols_fmt (
1619+ addrlist : * const * mut :: c_void ,
1620+ len : :: size_t ,
1621+ fmt : * const :: c_char ,
1622+ ) -> * mut * mut :: c_char ;
1623+ }
1624+
16091625cfg_if ! {
16101626 if #[ cfg( libc_union) ] {
16111627 extern {
You can’t perform that action at this time.
0 commit comments