]> git.lizzy.rs Git - rust.git/blob - src/libstd/sys/sgx/backtrace.rs
Add x86_64-fortanix-unknown-sgx target to libstd and dependencies
[rust.git] / src / libstd / sys / sgx / backtrace.rs
1 // Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 use io;
12 use sys::unsupported;
13 use sys_common::backtrace::Frame;
14
15 pub struct BacktraceContext;
16
17 pub fn unwind_backtrace(_frames: &mut [Frame])
18     -> io::Result<(usize, BacktraceContext)>
19 {
20     unsupported()
21 }
22
23 pub fn resolve_symname<F>(_frame: Frame,
24                           _callback: F,
25                           _: &BacktraceContext) -> io::Result<()>
26     where F: FnOnce(Option<&str>) -> io::Result<()>
27 {
28     unsupported()
29 }
30
31 pub fn foreach_symbol_fileline<F>(_: Frame,
32                                   _: F,
33                                   _: &BacktraceContext) -> io::Result<bool>
34     where F: FnMut(&[u8], u32) -> io::Result<()>
35 {
36     unsupported()
37 }