diff options
author | primiano@chromium.org <primiano@chromium.org> | 2014-10-28 16:45:14 +0000 |
---|---|---|
committer | primiano@chromium.org <primiano@chromium.org> | 2014-10-28 16:45:14 +0000 |
commit | 507a09f4de7e4c9881135c427353a40dab410c5a (patch) | |
tree | dc9561f724ba35a31c74e88b23fc5c85d6105dd1 /src/client/linux/dump_writer_common/mapping_info.h | |
parent | Fix breakpad on mips and x86_64 for the NDK r10c update. (diff) | |
download | breakpad-507a09f4de7e4c9881135c427353a40dab410c5a.tar.xz |
Introduce microdump writer class.
Microdumps are a very lightweight variant of minidumps. They are meant
to dump a minimal crash report on the system log (logcat on Android),
containing only the state of the crashing thread.
This is to deal with cases where the user has opted out from crash
uploading but we still want to generate meaningful information on the
device to pull a stacktrace for development purposes.
Conversely to conventional stack traces (e.g. the one generated by
Android's debuggerd or Chromium's base::stacktrace) microdumps do NOT
require unwind tables to be present in the target binary. This allows
to save precious binary size (~1.5 MB for Chrome on Arm, ~10 MB on
arm64).
More information and design doc on crbug.com/410294
BUG=chromium:410294
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1398 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/linux/dump_writer_common/mapping_info.h')
-rw-r--r-- | src/client/linux/dump_writer_common/mapping_info.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/client/linux/dump_writer_common/mapping_info.h b/src/client/linux/dump_writer_common/mapping_info.h index c206b504..5f247cfd 100644 --- a/src/client/linux/dump_writer_common/mapping_info.h +++ b/src/client/linux/dump_writer_common/mapping_info.h @@ -30,8 +30,12 @@ #ifndef CLIENT_LINUX_DUMP_WRITER_COMMON_MAPPING_INFO_H_ #define CLIENT_LINUX_DUMP_WRITER_COMMON_MAPPING_INFO_H_ +#include <limits.h> +#include <list> #include <stdint.h> +#include "google_breakpad/common/minidump_format.h" + namespace google_breakpad { // One of these is produced for each mapping in the process (i.e. line in @@ -44,6 +48,14 @@ struct MappingInfo { char name[NAME_MAX]; }; +struct MappingEntry { + MappingInfo first; + uint8_t second[sizeof(MDGUID)]; +}; + +// A list of <MappingInfo, GUID> +typedef std::list<MappingEntry> MappingList; + } // namespace google_breakpad #endif // CLIENT_LINUX_DUMP_WRITER_COMMON_MAPPING_INFO_H_ |