[PATCH] D48525: Handle NetBSD specific path in findDebugBinary()

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 25 11:53:52 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL335511: Handle NetBSD specific path in findDebugBinary() (authored by kamil, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D48525?vs=152608&id=152740#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D48525

Files:
  llvm/trunk/lib/DebugInfo/Symbolize/Symbolize.cpp


Index: llvm/trunk/lib/DebugInfo/Symbolize/Symbolize.cpp
===================================================================
--- llvm/trunk/lib/DebugInfo/Symbolize/Symbolize.cpp
+++ llvm/trunk/lib/DebugInfo/Symbolize/Symbolize.cpp
@@ -192,8 +192,13 @@
     Result = DebugPath.str();
     return true;
   }
+#if defined(__NetBSD__)
+  // Try /usr/libdata/debug/path/to/original_binary/debuglink_name
+  DebugPath = "/usr/libdata/debug";
+#else
   // Try /usr/lib/debug/path/to/original_binary/debuglink_name
   DebugPath = "/usr/lib/debug";
+#endif
   llvm::sys::path::append(DebugPath, llvm::sys::path::relative_path(OrigDir),
                           DebuglinkName);
   if (checkFileCRC(DebugPath, CRCHash)) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48525.152740.patch
Type: text/x-patch
Size: 712 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180625/1440635c/attachment.bin>


More information about the llvm-commits mailing list