sanitizer_symbolizer_libbacktrace.cc, [...]: Cherry pick upstream r224308.
authorJakub Jelinek <jakub@redhat.com>
Tue, 16 Dec 2014 11:35:34 +0000 (12:35 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 16 Dec 2014 11:35:34 +0000 (12:35 +0100)
* sanitizer_common/sanitizer_symbolizer_libbacktrace.cc,
sanitizer_common/sanitizer_symbolizer_libbacktrace.h,
sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc: Cherry pick
upstream r224308.

From-SVN: r218778

libsanitizer/ChangeLog
libsanitizer/sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
libsanitizer/sanitizer_common/sanitizer_symbolizer_libbacktrace.h
libsanitizer/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc

index e5f389bb43963fa82fec59d11265a6ad194406f4..8b2eb82bbdeb1a9da1eef5e98d2ef8b985fcb266 100644 (file)
@@ -1,3 +1,10 @@
+2014-12-16  Jakub Jelinek  <jakub@redhat.com>
+
+       * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc,
+       sanitizer_common/sanitizer_symbolizer_libbacktrace.h,
+       sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc: Cherry pick
+       upstream r224308.
+
 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR bootstrap/63784
index 905079475b87bd0349d896e691142d17610b2b5c..8bae57bfe66d79cca4f4223829cc45780ac504e3 100644 (file)
@@ -165,9 +165,9 @@ uptr LibbacktraceSymbolizer::SymbolizeCode(uptr addr, AddressInfo *frames,
   return data.n_frames;
 }
 
-bool LibbacktraceSymbolizer::SymbolizeData(DataInfo *info) {
-  backtrace_syminfo((backtrace_state *)state_, info->start,
-                    SymbolizeDataCallback, ErrorCallback, info);
+bool LibbacktraceSymbolizer::SymbolizeData(uptr addr, DataInfo *info) {
+  backtrace_syminfo((backtrace_state *)state_, addr, SymbolizeDataCallback,
+                    ErrorCallback, info);
   return true;
 }
 
@@ -185,7 +185,7 @@ uptr LibbacktraceSymbolizer::SymbolizeCode(uptr addr, AddressInfo *frames,
   return 0;
 }
 
-bool LibbacktraceSymbolizer::SymbolizeData(DataInfo *info) {
+bool LibbacktraceSymbolizer::SymbolizeData(uptr addr, DataInfo *info) {
   return false;
 }
 
index c7a83bfca921a26d088ebf764546caeeb1a93c61..aa75a7907df0b1c304412333e72b64f04614535d 100644 (file)
@@ -33,7 +33,7 @@ class LibbacktraceSymbolizer {
   uptr SymbolizeCode(uptr addr, AddressInfo *frames, uptr max_frames,
                      const char *module_name, uptr module_offset);
 
-  bool SymbolizeData(DataInfo *info);
+  bool SymbolizeData(uptr addr, DataInfo *info);
 
   // May return NULL if demangling failed.
   static char *Demangle(const char *name, bool always_alloc = false);
index ccd2d70f0f074abfd0cd7e9c518157fb4f0484dd..5cc21d3f2bf4d532bdc6b9c2f4d4838d694a8693 100644 (file)
@@ -593,7 +593,7 @@ class POSIXSymbolizer : public Symbolizer {
     // First, try to use libbacktrace symbolizer (if it's available).
     if (libbacktrace_symbolizer_ != 0) {
       mu_.CheckLocked();
-      if (libbacktrace_symbolizer_->SymbolizeData(info))
+      if (libbacktrace_symbolizer_->SymbolizeData(addr, info))
         return true;
     }
     const char *str = SendCommand(true, module_name, module_offset);