summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2015-06-02 14:52:44 -0700
committerChristopher Ferris <cferris@google.com>2015-06-03 12:12:31 -0700
commit21bd040effcfc48e8794558c91bbfdc159a98f00 (patch)
tree83c030cd901ea0068bc291e9cadc487a7d04b774 /include
parent49ed105fd91677f7c87417890bf7441146953fff (diff)
downloadsystem_core-21bd040effcfc48e8794558c91bbfdc159a98f00.zip
system_core-21bd040effcfc48e8794558c91bbfdc159a98f00.tar.gz
system_core-21bd040effcfc48e8794558c91bbfdc159a98f00.tar.bz2
Change the 64 bit map address format.
Previously, the map printing in tombstones for 64 bit devices uses a variable length value. This means that the maps are not lined up. The new format is to print the map as 00000000'00000000 in all ways. Also fix a bug where the backtrace_map_t did not initialize all parameters. Add unit tests for all of the dump_all_maps function. Bug: 20950813 (cherry picked from commit 862fe029190b6d8344889988fb85526e64b2f4b7) Change-Id: Ife5c48bddeb19006a98f9e87520474e97b97f6d9
Diffstat (limited to 'include')
-rw-r--r--include/backtrace/BacktraceMap.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/include/backtrace/BacktraceMap.h b/include/backtrace/BacktraceMap.h
index 784bc03..bb18aa2 100644
--- a/include/backtrace/BacktraceMap.h
+++ b/include/backtrace/BacktraceMap.h
@@ -33,13 +33,11 @@
#include <string>
struct backtrace_map_t {
- backtrace_map_t(): start(0), end(0), flags(0) {}
-
- uintptr_t start;
- uintptr_t end;
- uintptr_t offset;
- uintptr_t load_base;
- int flags;
+ uintptr_t start = 0;
+ uintptr_t end = 0;
+ uintptr_t offset = 0;
+ uintptr_t load_base = 0;
+ int flags = 0;
std::string name;
};