]> granicus.if.org Git - llvm/commit
[DebugInfo] Don't use realpath when looking up debug binary locations.
authorJordan Rupprecht <rupprecht@google.com>
Fri, 1 Feb 2019 21:04:16 +0000 (21:04 +0000)
committerJordan Rupprecht <rupprecht@google.com>
Fri, 1 Feb 2019 21:04:16 +0000 (21:04 +0000)
commit4bca96d66ce8450a588e0684978f0bfb64e95f91
treebf434336c983e5265b0e55e5b4fbacce400799d9
parent3641e513697ded5b996102e6f31c51d62a7362c0
[DebugInfo] Don't use realpath when looking up debug binary locations.

Summary:
Using realpath makes assumptions about build systems that do not always hold true. The debug binary referred to from the .gnu_debuglink should exist in the same directory (or in a .debug directory, etc.), but the files may only exist as symlinks to a differently named files elsewhere, and using realpath causes that lookup to fail.

This was added in r189250, and this is basically a revert + regression test case.

Reviewers: dblaikie, samsonov, jhenderson

Reviewed By: dblaikie

Subscribers: llvm-commits, hiraditya

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D57609

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352916 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/Symbolize/Symbolize.cpp
test/DebugInfo/symbolize-gnu-debuglink-no-realpath.test [new file with mode: 0644]