[PATCH] [RFC] Use llvm-symbolizer to symbolize LLVM/Clang crash dumps

Ed Maste emaste at freebsd.org
Thu Oct 9 12:48:10 PDT 2014


================
Comment at: lib/Support/Unix/Signals.inc:275
@@ -266,1 +274,3 @@
 
+#if HAVE_LINK_H && defined(__linux__)
+struct DlIteratePhdrData {
----------------
This builds on FreeBSD (with the __linux__ removed again) after your `ElfW(Phdr)`->`auto *phdr` change

================
Comment at: lib/Support/Unix/Signals.inc:287
@@ +286,3 @@
+  DlIteratePhdrData *data = (DlIteratePhdrData*)arg;
+  const char *name = data->first ? data->main_exec_name : info->dlpi_name;
+  data->first = false;
----------------
This conditional is not be needed on FreeBSD, since on FreeBSD dl_iterate_phdr returns the executable with full path name in dlpi_name.

http://reviews.llvm.org/D5610






More information about the llvm-commits mailing list