summaryrefslogtreecommitdiffstats
path: root/debuggerd
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2015-05-06 12:50:09 -0700
committerChristopher Ferris <cferris@google.com>2015-05-06 16:35:50 -0700
commitaf67fb247540ef084a0b644e1d3bf225db4de6bd (patch)
treebf4eb96ccc6d24c3e28e9aa47829c5191d814371 /debuggerd
parentac725c12da8a67ca33d10c7b6131f8f543ed4449 (diff)
downloadsystem_core-af67fb247540ef084a0b644e1d3bf225db4de6bd.zip
system_core-af67fb247540ef084a0b644e1d3bf225db4de6bd.tar.gz
system_core-af67fb247540ef084a0b644e1d3bf225db4de6bd.tar.bz2
Add offset to map data.
Also, print the offset in the maps section. Bug: 20864928 Change-Id: I71f005726e5ef73cf75bbcb8f829fd5127cb9d61 (cherry picked from commit 5c8856854de4ae7836fc1073d534f4b7b7a03eb9)
Diffstat (limited to 'debuggerd')
-rw-r--r--debuggerd/tombstone.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/debuggerd/tombstone.cpp b/debuggerd/tombstone.cpp
index 56c03f7..b7e6b17 100644
--- a/debuggerd/tombstone.cpp
+++ b/debuggerd/tombstone.cpp
@@ -371,7 +371,8 @@ static void dump_all_maps(Backtrace* backtrace, BacktraceMap* map, log_t* log, p
} else {
line += '-';
}
- line += android::base::StringPrintf(" %8" PRIxPTR, it->end - it->start);
+ line += android::base::StringPrintf(" %8" PRIxPTR " %8" PRIxPTR,
+ it->offset, it->end - it->start);
if (it->name.length() > 0) {
line += " " + it->name;
std::string build_id;