summary refs log tree commit diff
path: root/src/test/run-pass/backtrace-debuginfo.rs
AgeCommit message (Collapse)AuthorLines
2015-03-20std: Remove old_io/old_path from the preludeAlex Crichton-7/+9
This commit removes the reexports of `old_io` traits as well as `old_path` types and traits from the prelude. This functionality is now all deprecated and needs to be removed to make way for other functionality like `Seek` in the `std::io` module (currently reexported as `NewSeek` in the io prelude). Closes #23377 Closes #23378
2015-03-15Strip all leading/trailing newlinesTamir Duberstein-1/+0
2015-03-03Fix backtrace tests for LinuxManish Goregaokar-4/+4
2015-02-28std: Fixed backtrace warnings and tests for non-Linux platforms.Kang Seonghoon-4/+26
- Fixed a couple of dead code warnings in std::sys::backtrace. - Made `backtrace-debuginfo` test a no-op on non-Linux platforms. - `backtrace-debuginfo` is no longer tested on pretty-rpass.
2015-02-27Makes the picky tidy satisfied. Also refers to the correct issue.Kang Seonghoon-1/+1
2015-02-27Removed an excess feature flag from the backtrace test.Kang Seonghoon-2/+0
2015-02-27std: Include line numbers in backtraces.Kang Seonghoon-0/+140
Fixes #20978 for supported platforms (i.e. non-Android POSIX). This uses `backtrace_pcinfo` to inspect the DWARF debug info and list the file and line pairs for given stack frame. Such pair is not unique due to the presence of inlined functions and the updated routine correctly handles this case. The code is modelled after libbacktrace's `backtrace_full` routine. There is one known issue with this approach. Macros, when invoked, take over the current frame and shadows the file and line pair which has invoked a macro. In particular, this makes many panicking macros a bit harder to inspect. This really is a debuginfo problem, and the backtrace routine should print them correctly with a correct debuginfo.