Refactor code out of MinidumpModuleList::Read().

Add a StoreRange() helper method and an IsDevAshmem() helper function.

Change-Id: Iaec9dee1e08bd0155f1c33cfe9af722b0dcaef31
Reviewed-on: https://chromium-review.googlesource.com/1114188
Reviewed-by: Joshua Peraza <jperaza@chromium.org>
This commit is contained in:
Lei Zhang 2018-06-25 14:31:04 -07:00
parent d0241bb91c
commit d531e1b2ba
2 changed files with 60 additions and 48 deletions

View file

@ -541,6 +541,11 @@ class MinidumpModuleList : public MinidumpStream,
bool Read(uint32_t expected_size);
bool StoreRange(const MinidumpModule& module,
uint64_t base_address,
uint32_t module_index,
uint32_t module_count);
// The largest number of modules that will be read from a minidump. The
// default is 1024.
static uint32_t max_modules_;