Merge "Show the number of VMAs in the tombstone."
This commit is contained in:
commit
92c355cc4f
2 changed files with 9 additions and 5 deletions
|
|
@ -413,15 +413,17 @@ static void dump_all_maps(Backtrace* backtrace, BacktraceMap* map, log_t* log, p
|
||||||
}
|
}
|
||||||
|
|
||||||
ScopedBacktraceMapIteratorLock lock(map);
|
ScopedBacktraceMapIteratorLock lock(map);
|
||||||
_LOG(log, logtype::MAPS, "\n");
|
_LOG(log, logtype::MAPS,
|
||||||
if (!print_fault_address_marker) {
|
"\n"
|
||||||
_LOG(log, logtype::MAPS, "memory map:\n");
|
"memory map (%zu entries):\n",
|
||||||
} else {
|
map->size());
|
||||||
_LOG(log, logtype::MAPS, "memory map: (fault address prefixed with --->)\n");
|
if (print_fault_address_marker) {
|
||||||
if (map->begin() != map->end() && addr < map->begin()->start) {
|
if (map->begin() != map->end() && addr < map->begin()->start) {
|
||||||
_LOG(log, logtype::MAPS, "--->Fault address falls at %s before any mapped regions\n",
|
_LOG(log, logtype::MAPS, "--->Fault address falls at %s before any mapped regions\n",
|
||||||
get_addr_string(addr).c_str());
|
get_addr_string(addr).c_str());
|
||||||
print_fault_address_marker = false;
|
print_fault_address_marker = false;
|
||||||
|
} else {
|
||||||
|
_LOG(log, logtype::MAPS, "(fault address prefixed with --->)\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,8 @@ public:
|
||||||
const_iterator begin() const { return maps_.begin(); }
|
const_iterator begin() const { return maps_.begin(); }
|
||||||
const_iterator end() const { return maps_.end(); }
|
const_iterator end() const { return maps_.end(); }
|
||||||
|
|
||||||
|
size_t size() const { return maps_.size(); }
|
||||||
|
|
||||||
virtual bool Build();
|
virtual bool Build();
|
||||||
|
|
||||||
static inline bool IsValid(const backtrace_map_t& map) {
|
static inline bool IsValid(const backtrace_map_t& map) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue