Index: base/third_party/symbolize/symbolize.h |
diff --git a/base/third_party/symbolize/symbolize.h b/base/third_party/symbolize/symbolize.h |
index 441e5436962f7ddd091dd348809a1b9220187561..12ca40e8c2fbb58856851ac7efb8a8e2f3771be6 100644 |
--- a/base/third_party/symbolize/symbolize.h |
+++ b/base/third_party/symbolize/symbolize.h |
@@ -128,6 +128,18 @@ _START_GOOGLE_NAMESPACE_ |
// returns false. |
bool Symbolize(void *pc, char *out, int out_size); |
+// Search for the object file (from /proc/self/maps) that contains |
+// the specified pc. If found, copy the file name to "out" and parsed starting |
+// address of where the object file is mapped to in memory and return true. |
+// Otherwise, return false. |
+// |
+// If successful, the resulting file name will include the trailing '\0'. |
+// |
+// NOTE: "start_address" is the value directly from /proc/self/maps and may not |
+// be correct for prelinked shared libraries. |
+bool FindObjectFileNameContainingPcAndGetStartAddress( |
+ void *pc, char *out, int out_size, uint64_t *start_address); |
+ |
_END_GOOGLE_NAMESPACE_ |
#endif // BASE_SYMBOLIZE_H_ |