summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/Symbolize
diff options
context:
space:
mode:
authorFrancis Ricci <francisjricci@gmail.com>2018-03-02 22:56:45 +0000
committerFrancis Ricci <francisjricci@gmail.com>2018-03-02 22:56:45 +0000
commitfe6cbceec2aa6dd9eb4e188811d2a896ac0b33c0 (patch)
tree802c75bbeac938942ba7bce2e81ac6962db32997 /llvm/lib/DebugInfo/Symbolize
parentf69baf64ebc546681b296d8f339a11de2c411642 (diff)
downloadbcm5719-llvm-fe6cbceec2aa6dd9eb4e188811d2a896ac0b33c0.tar.gz
bcm5719-llvm-fe6cbceec2aa6dd9eb4e188811d2a896ac0b33c0.zip
[llvm-symbolizer] Use correct path when resolving .gnu_debuglink in .debug
Summary: The symbolizer was checking for .debug as a subdirectory of the binary file itself, not of the directory containing the binary. This led to a failure to find split debug info when it was contained in a .debug directory. Reviewers: rnk, glider, zturner Subscribers: llvm-commits, aprantl Differential Revision: https://reviews.llvm.org/D44025 llvm-svn: 326630
Diffstat (limited to 'llvm/lib/DebugInfo/Symbolize')
-rw-r--r--llvm/lib/DebugInfo/Symbolize/Symbolize.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp b/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp
index e997ef5b606..681334bc405 100644
--- a/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp
+++ b/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp
@@ -185,7 +185,7 @@ bool findDebugBinary(const std::string &OrigPath,
return true;
}
// Try /path/to/original_binary/.debug/debuglink_name
- DebugPath = OrigRealPath;
+ DebugPath = OrigDir;
llvm::sys::path::append(DebugPath, ".debug", DebuglinkName);
if (checkFileCRC(DebugPath, CRCHash)) {
Result = DebugPath.str();
OpenPOWER on IntegriCloud