Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1985)

Unified Diff: base/third_party/symbolize/symbolize.h

Issue 16770006: Implement basic stack traces on Android and reenable unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: refactor symbolize Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..99a0468501c2450f1c1d8bad1a6ca42f8d0c7776 100644
--- a/base/third_party/symbolize/symbolize.h
+++ b/base/third_party/symbolize/symbolize.h
@@ -128,6 +128,16 @@ _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 path name to "out" and parsed starting
satorux1 2013/06/13 01:58:10 fpath name -> file name, to be consistent with the
scherkus (not reviewing) 2013/06/13 02:20:46 Done.
+// address of where the object file is mapped to in memory and return true.
+// Otherwise, return false.
+//
+// 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_

Powered by Google App Engine
This is Rietveld 408576698