summaryrefslogtreecommitdiffstats
path: root/debuggerd/libdebuggerd/tombstone.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-09-26 11:54:49 -0700
committerElliott Hughes <enh@google.com>2017-09-26 12:01:06 -0700
commit868d39a82fb2d9830d253409a1c28f0ae1fcac33 (patch)
tree4fa6cbeb2fb1bcde3db301f722212d35d335ff9b /debuggerd/libdebuggerd/tombstone.cpp
parent65673033ab9473142b334df76e8c0fcdea6a9335 (diff)
downloadsystem_core-868d39a82fb2d9830d253409a1c28f0ae1fcac33.tar.gz
system_core-868d39a82fb2d9830d253409a1c28f0ae1fcac33.tar.bz2
system_core-868d39a82fb2d9830d253409a1c28f0ae1fcac33.zip
Show the number of VMAs in the tombstone.
Tombstones (especially ones with lots of VMAs) are regularly truncated. We can at least show the number of VMAs, though, for anyone interested in knowing whether they got close to the default 64Ki limit. Bug: http://b/66911122 Test: ran crasher, examined tombstone Change-Id: I286db66f28f132307d573dbe5164efc969dc6ddc
Diffstat (limited to 'debuggerd/libdebuggerd/tombstone.cpp')
-rw-r--r--debuggerd/libdebuggerd/tombstone.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/debuggerd/libdebuggerd/tombstone.cpp b/debuggerd/libdebuggerd/tombstone.cpp
index f5ecf48c5..418d09227 100644
--- a/debuggerd/libdebuggerd/tombstone.cpp
+++ b/debuggerd/libdebuggerd/tombstone.cpp
@@ -413,15 +413,17 @@ static void dump_all_maps(Backtrace* backtrace, BacktraceMap* map, log_t* log, p
}
ScopedBacktraceMapIteratorLock lock(map);
- _LOG(log, logtype::MAPS, "\n");
- if (!print_fault_address_marker) {
- _LOG(log, logtype::MAPS, "memory map:\n");
- } else {
- _LOG(log, logtype::MAPS, "memory map: (fault address prefixed with --->)\n");
+ _LOG(log, logtype::MAPS,
+ "\n"
+ "memory map (%zu entries):\n",
+ map->size());
+ if (print_fault_address_marker) {
if (map->begin() != map->end() && addr < map->begin()->start) {
_LOG(log, logtype::MAPS, "--->Fault address falls at %s before any mapped regions\n",
get_addr_string(addr).c_str());
print_fault_address_marker = false;
+ } else {
+ _LOG(log, logtype::MAPS, "(fault address prefixed with --->)\n");
}
}