rust/src/librustc_metadata
Ted Mielczarek 24e7491660 Add an abs_path member to FileMap, use it when writing debug info.
When items are inlined from extern crates, the filename in the debug info
is taken from the FileMap that's serialized in the rlib metadata.
Currently this is just FileMap.name, which is whatever path is passed to rustc.
Since libcore and libstd are built by invoking rustc with relative paths,
they wind up with relative paths in the rlib, and when linked into a binary
the debug info uses relative paths for the names, but since the compilation
directory for the final binary, tools trying to read source filenames
will wind up with bad paths. We noticed this in Firefox with source
filenames from libcore/libstd having bad paths.

This change stores an absolute path in FileMap.abs_path, and uses that
if available for writing debug info. This is not going to magically make
debuggers able to find the source, but it will at least provide sensible
paths.
2016-06-16 18:08:46 +01:00
..
astencode.rs Introduce TyCtxt::expect_def/expect_resolution helpers and use them where possible 2016-06-10 01:03:54 +03:00
Cargo.toml
common.rs trans: remove item_symbols from metadata and CrateContext. 2016-05-25 01:56:49 +03:00
creader.rs Add an abs_path member to FileMap, use it when writing debug info. 2016-06-16 18:08:46 +01:00
csearch.rs fix ICEs with RUST_LOG 2016-06-03 16:11:18 +03:00
cstore.rs allow retracing paths across crates 2016-05-18 10:11:36 -04:00
decoder.rs Auto merge of #33622 - arielb1:elaborate-drops, r=nikomatsakis 2016-06-04 23:49:29 -07:00
def_key.rs
diagnostics.rs Add error description for E0455 2016-05-10 20:16:29 -03:00
encoder.rs make region-param-def encoding more DRY 2016-05-31 19:44:04 -04:00
index.rs when encoding, push MetaData(foo) task on stack 2016-05-18 10:11:35 -04:00
lib.rs
loader.rs change svh to store a u64 2016-05-18 10:11:35 -04:00
macro_import.rs Load macros from extern crates during expansion. 2016-06-09 00:44:17 +00:00
macros.rs
tls_context.rs rustc: Split 'tcx into 'gcx and 'tcx for InferCtxt and its users. 2016-05-11 04:14:58 +03:00
tydecode.rs rustc: add ReErased to be used by trait selection, MIR and trans. 2016-06-05 13:58:51 +03:00
tyencode.rs rustc: add ReErased to be used by trait selection, MIR and trans. 2016-06-05 13:58:51 +03:00