diff options
| author | Diggory Blake <diggsey@googlemail.com> | 2015-08-26 01:44:55 +0100 |
|---|---|---|
| committer | Diggory Blake <diggsey@googlemail.com> | 2015-09-04 01:25:15 +0100 |
| commit | d4fc3ec208186f0a9de8d05a6802c95b07e058fd (patch) | |
| tree | 6a5f95c3d8cfb20e65f08b3d67036a966308fffe /src/libstd/sys/windows/printing/gnu.rs | |
| parent | ac12c7f1ed7de4fb564ae637f55199eb553e5126 (diff) | |
| download | rust-d4fc3ec208186f0a9de8d05a6802c95b07e058fd.tar.gz rust-d4fc3ec208186f0a9de8d05a6802c95b07e058fd.zip | |
Add line numbers to windows-gnu backtraces
Fix formatting Remove unused imports Refactor Fix msvc build Fix line lengths Formatting Enable backtrace tests Fix using directive on mac pwd info Work-around buildbot PWD bug, and fix libbacktrace configuration Use alternative to `env -u` which is not supported on bitrig Disable tests on 32-bit windows gnu
Diffstat (limited to 'src/libstd/sys/windows/printing/gnu.rs')
| -rw-r--r-- | src/libstd/sys/windows/printing/gnu.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/libstd/sys/windows/printing/gnu.rs b/src/libstd/sys/windows/printing/gnu.rs new file mode 100644 index 00000000000..8d3c93bb7b1 --- /dev/null +++ b/src/libstd/sys/windows/printing/gnu.rs @@ -0,0 +1,22 @@ +// Copyright 2014 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +use dynamic_lib::DynamicLibrary; +use io; +use io::prelude::*; +use libc; + +use sys_common::gnu::libbacktrace; + +pub fn print(w: &mut Write, i: isize, addr: u64, _: &DynamicLibrary, _: libc::HANDLE) + -> io::Result<()> { + let addr = addr as usize as *mut libc::c_void; + libbacktrace::print(w, i, addr, addr) +} |
